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

Erik Johansson report at bugs.python.org
Wed Mar 7 16:34:01 CET 2012


Erik Johansson <erik at ejohansson.se> 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: libc.time != libc['time'] -> Documented caching for shared library's __getattr__ and __getitem__ is incorrect

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14201>
_______________________________________


More information about the Python-bugs-list mailing list