New submission from Erik Johansson :
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 re
Erik Johansson added the comment:
Perhaps this behaviour should be documented somewhere (unless it already is)?
--
___
Python tracker
<http://bugs.python.org/issue14
Erik Johansson added the comment:
Ah, I see. I modified the title to reflect this.
Perhaps adding this simple example as well can help people (e.g. me) see it?
>>> libc.time == libc.time
True
>>> libc['time'] == libc['time']
False
--
title: l
Erik Johansson added the comment:
Document the difference between __getattr__ and __getitem__.
--
keywords: +patch
Added file: http://bugs.python.org/file26402/issue14201.patch
___
Python tracker
<http://bugs.python.org/issue14
Erik Johansson added the comment:
The issue14201-v2.patch patch looks good to me at least.
--
___
Python tracker
<http://bugs.python.org/issue14201>
___
___
Pytho