Éric Araujo <mer...@netwok.org> added the comment:

After a quick perusal of the PEP, there are no wrong definitions of context 
managers (IOW they define methods in a class, not attribute on an object), but 
the pseudo-code explaining how the statement works use things like 
“mgr.__enter__” instead of “type(mgr).__enter__(mgr)”, which might be 
misleading.

----------
nosy: +eric.araujo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11428>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to