Message154949
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. |
|
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 | |
|