[issue9220] Modules no longer usable as context managers

Éric Araujo report at bugs.python.org
Sat Jul 10 22:03:15 CEST 2010


Éric Araujo <merwok at netwok.org> added the comment:

IIUC, magic methods are looked up on the object’s class, not in the object’s __dict__. This behavior in 2.6 seems like a bug to me.

I-tried-to-add-__call__-to-a-module-once-ly yours

----------
nosy: +merwok

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


More information about the Python-bugs-list mailing list