[docs] [issue10461] Use with statement throughout the docs
Terry J. Reedy
report at bugs.python.org
Fri Nov 19 21:12:36 CET 2010
Terry J. Reedy <tjreedy at udel.edu> added the comment:
+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').
----------
nosy: +terry.reedy
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10461>
_______________________________________
More information about the docs
mailing list