Commit Graph

59 Commits

Author SHA1 Message Date
David Goodger 5c42550605 fixed typos 2005-05-15 00:45:42 +00:00
Guido van Rossum cea61e0c0a __exit__ is always called with 3 args. 2005-05-14 17:36:15 +00:00
Guido van Rossum 9dccdb93a1 Break last line of intro differently so "PEP 310" can be a hyperlink. 2005-05-14 05:20:21 +00:00
Guido van Rossum 72d772445b Explain the __exit__() signature. 2005-05-14 05:18:36 +00:00
Guido van Rossum a83f881582 Slight elaboration for readers who don't recall PEP 310. 2005-05-14 05:08:23 +00:00
Guido van Rossum 33cff6d943 Add a motivational section, remove tabs, add colons, and some very
minor edits.
2005-05-14 05:02:28 +00:00
Guido van Rossum 3df485114c Various clarifications. Mention Decimal context example. Clarify
that I don't like having files etc. implement __enter__ and __exit__
directly.
2005-05-14 04:02:10 +00:00
Guido van Rossum e9086b2485 Don't be wishy-washy about the call to __exit__().
Fix the redirecting_stdout() example (remove the try/finally).
2005-05-14 02:02:40 +00:00
Guido van Rossum 3e348d5237 Add PEP 343: Anonymous Block Redux 2005-05-14 00:08:20 +00:00