This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:41erijosetrecipients: + erijo
2012-03-05 14:23:41erijosetmessageid: <1330957421.08.0.5889949548.issue14201@psf.upfronthosting.co.za>
2012-03-05 14:23:40erijolinkissue14201 messages
2012-03-05 14:23:40erijocreate