This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients alex, amaury.forgeotdarc, benjamin.peterson, brett.cannon, brian.curtin, exarkun, giampaolo.rodola, lemburg, pitrou
Date 2010-10-22.22:13:41
SpamBayes Score 6.9704567e-09
Marked as misclassified No
Message-id <1287785637.48.0.657862834659.issue10093@psf.upfronthosting.co.za>
In-reply-to
Content
I wonder why you think a warning is needed if files aren't closed explicitly. The fact that they get closed on garbage collection is one of the nice features of Python and has made programming easy for years. 

Explicitly having to close files may have some benefits w/r to resource management, but in most cases is not needed. I disagree that we should discourage not explicitly closing files. After all, this is Python, not C.
History
Date User Action Args
2010-10-22 22:13:57lemburgsetrecipients: + lemburg, brett.cannon, exarkun, amaury.forgeotdarc, pitrou, giampaolo.rodola, benjamin.peterson, alex, brian.curtin
2010-10-22 22:13:57lemburgsetmessageid: <1287785637.48.0.657862834659.issue10093@psf.upfronthosting.co.za>
2010-10-22 22:13:41lemburglinkissue10093 messages
2010-10-22 22:13:41lemburgcreate