[issue14201] libc.time != libc['time']

2012-03-05 Thread Erik Johansson
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

[issue14201] libc.time != libc['time']

2012-03-07 Thread Erik Johansson
Erik Johansson added the comment: Perhaps this behaviour should be documented somewhere (unless it already is)? -- ___ Python tracker <http://bugs.python.org/issue14

[issue14201] Documented caching for shared library's __getattr__ and __getitem__ is incorrect

2012-03-07 Thread Erik Johansson
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

[issue14201] Documented caching for shared library's __getattr__ and __getitem__ is incorrect

2012-07-16 Thread Erik Johansson
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

[issue14201] Documented caching for shared library's __getattr__ and __getitem__ is incorrect

2012-09-25 Thread Erik Johansson
Erik Johansson added the comment: The issue14201-v2.patch patch looks good to me at least. -- ___ Python tracker <http://bugs.python.org/issue14201> ___ ___ Pytho