Message121565
+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'). |
|
Date |
User |
Action |
Args |
2010-11-19 20:12:36 | terry.reedy | set | recipients:
+ terry.reedy, belopolsky, eric.araujo, docs@python |
2010-11-19 20:12:36 | terry.reedy | set | messageid: <1290197556.07.0.481784230432.issue10461@psf.upfronthosting.co.za> |
2010-11-19 20:12:34 | terry.reedy | link | issue10461 messages |
2010-11-19 20:12:34 | terry.reedy | create | |
|