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 georg.brandl
Recipients georg.brandl, ned.deily, pjcreath
Date 2011-01-08.09:45:53
SpamBayes Score 0.00025978422
Marked as misclassified No
Message-id <1294479958.52.0.0889688129475.issue10855@psf.upfronthosting.co.za>
In-reply-to
Content
This is not a bug in the implementation: the file object is only closed when you passed a file name to open().

Like other APIs that allow file names or objects to be passed in, it is the caller's responsibility to close the file object if an object was passed.

However, this was not documented.  I've fixed that with r87859.
History
Date User Action Args
2011-01-08 09:45:58georg.brandlsetrecipients: + georg.brandl, ned.deily, pjcreath
2011-01-08 09:45:58georg.brandlsetmessageid: <1294479958.52.0.0889688129475.issue10855@psf.upfronthosting.co.za>
2011-01-08 09:45:53georg.brandllinkissue10855 messages
2011-01-08 09:45:53georg.brandlcreate