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 terry.reedy
Recipients belopolsky, docs@python, eric.araujo, terry.reedy
Date 2010-11-19.20:12:34
SpamBayes Score 0.00075129914
Marked as misclassified No
Message-id <1290197556.07.0.481784230432.issue10461@psf.upfronthosting.co.za>
In-reply-to
Content
+1
I have not yet had occasion to use 'with' yet, but in reading the Unicode HOWTO diff, I noticed that I liked replacing 'open,read,close' with 'with open, read' just for reading purposes since it turns 3 steps into 1 compound transaction.

Perhaps something should also be added to the doc style guide (along with using 'attributes' instead of 'members').
History
Date User Action Args
2010-11-19 20:12:36terry.reedysetrecipients: + terry.reedy, belopolsky, eric.araujo, docs@python
2010-11-19 20:12:36terry.reedysetmessageid: <1290197556.07.0.481784230432.issue10461@psf.upfronthosting.co.za>
2010-11-19 20:12:34terry.reedylinkissue10461 messages
2010-11-19 20:12:34terry.reedycreate