[issue6519] Reorder 'with' statement for files in Python Tutorial

Ezio Melotti report at bugs.python.org
Sat Feb 27 10:48:50 CET 2010


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

All the examples there assume that "a file object called f has already been created". Using a 'with' there it's not a good idea because the users will have to keep the instructions indented under the 'with'.
However I agree that it would be better to move that example earlier. Maybe in 7.2 both the forms can be shown and discussed briefly.

----------
stage:  -> needs patch
versions:  -Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6519>
_______________________________________


More information about the Python-bugs-list mailing list