Message130615
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. |
|
Date |
User |
Action |
Args |
2011-03-11 21:27:26 | eric.araujo | set | recipients:
+ eric.araujo, georg.brandl, benjamin.peterson, benrg |
2011-03-11 21:27:26 | eric.araujo | set | messageid: <1299878846.69.0.0059477618207.issue11428@psf.upfronthosting.co.za> |
2011-03-11 21:27:25 | eric.araujo | link | issue11428 messages |
2011-03-11 21:27:25 | eric.araujo | create | |
|