[issue11428] with statement looks up __exit__ incorrectly

Georg Brandl report at bugs.python.org
Mon Mar 7 08:35:02 CET 2011


Georg Brandl <georg at python.org> added the comment:

The bug is actually in 3.1 and fixed in 3.2: special methods (those with __underscore__ names) are supposed to be looked up on the class, not the instance.

----------
nosy: +georg.brandl
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list