Message154949
| Author |
erijo |
| Recipients |
erijo |
| Date |
2012年03月05日.14:23:40 |
| SpamBayes Score |
2.2450553e-07 |
| Marked as misclassified |
No |
| Message-id |
<1330957421.08.0.5889949548.issue14201@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I would expect that the following code would give True as result:
>>> from ctypes import *
>>> libc = CDLL("libc.so.6")
>>> libc.time == libc['time']
False
Is it by design that libc['time'] always returns a different _FuncPtr object? It is a bit confusing when doing things like:
libc['time'].restype = ...
libc['time'].argtypes = [...]
# python --version
Python 2.7.2+
Ubunutu version 2.7.2-5ubuntu1. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月05日 14:23:41 | erijo | set | recipients:
+ erijo |
| 2012年03月05日 14:23:41 | erijo | set | messageid: <1330957421.08.0.5889949548.issue14201@psf.upfronthosting.co.za> |
| 2012年03月05日 14:23:40 | erijo | link | issue14201 messages |
| 2012年03月05日 14:23:40 | erijo | create |
|