[issue8522] enhacement proposal in howto/doanddont

2010-04-25 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied in r80461. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue8522] enhacement proposal in howto/doanddont

2010-04-24 Thread Adrián Deccico
Adrián Deccico 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 ___ Python tracker

[issue8522] enhacement proposal in howto/doanddont

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