[issue8522] enhacement proposal in howto/doanddont

2010-04-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, applied in r80461. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8522

[issue8522] enhacement proposal in howto/doanddont

2010-04-24 Thread Éric Araujo
É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

[issue8522] enhacement proposal in howto/doanddont

2010-04-24 Thread Adrián Deccico
Adrián Deccico decc...@gmail.com added the comment: Hi, you are right. I am attaching the patch. I tested against 2.6.5 and trunk (the file has no changed) thanks -- keywords: +patch Added file: http://bugs.python.org/file17072/doanddont.rst.patch