Éric Araujo <mer...@netwok.org> added the comment: Hello
You’re right, this idiom (new in 2.5, always enabled in 2.6) is now the recommended way of doing this. Note that the older code does close the file properly too, it’s just another way of doing it. Would you like to provide a patch against the latest version of this file? Regards ---------- assignee: d...@python -> nosy: +merwok stage: -> needs patch title: enhacement proposal in http://docs.python.org/howto/doanddont.html -> enhacement proposal in howto/doanddont versions: +Python 2.7, Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8522> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com