This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eddy
Recipients eddy, georg.brandl
Date 2010-02-14.06:52:12
SpamBayes Score 3.7439164e-05
Marked as misclassified No
Message-id <1266130394.53.0.910004543029.issue7926@psf.upfronthosting.co.za>
In-reply-to
Content
http://docs.python.org/whatsnew/2.6.html#writing-context-managers
penultimate item in "A high-level explanation": <quote>
If BLOCK raises an exception, the __exit__(type, value, traceback)() is called 
</quote> has extra () after the argument list - this appears to say that __exit__ should return a callable, that shall be called with no parameters.  Fortunately, later example code reveals that __exit__ simply returns true or false.

http://docs.python.org/whatsnew/2.6.html#the-contextlib-module
after the first code block: <quote>
The contextlib module also has a nested(mgr1, mgr2, ...)() function 
</quote> again, stray () after parameter list.
After the next short code snippet: <quote>
Finally, the closing(object)() function returns ...
</quote>
History
Date User Action Args
2010-02-14 06:53:14eddysetrecipients: + eddy, georg.brandl
2010-02-14 06:53:14eddysetmessageid: <1266130394.53.0.910004543029.issue7926@psf.upfronthosting.co.za>
2010-02-14 06:52:13eddylinkissue7926 messages
2010-02-14 06:52:12eddycreate