homepage

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 bennorth
Recipients bennorth, georg.brandl
Date 2009年04月23日.13:03:06
SpamBayes Score 0.00014192147
Marked as misclassified No
Message-id <1240491789.45.0.177840065777.issue5821@psf.upfronthosting.co.za>
In-reply-to
Content
The current documentation for tarfile.TarFile.extractfile() does not
mention that the returned 'file-like object' supports close() and also
iteration. The attached patch (against svn trunk) fixes this.
(Background: I was wondering whether I could write
 def process_and_close_file(f_in):
 with closing(f_in) as f:
 # Do stuff with f.
and have it work whether f_in was a true file or the return value of
extractfile(), and thought from the documentation that I couldn't. Of
course, I could have just tried it, but I think fixing the documentation
wouldn't hurt.)
History
Date User Action Args
2009年04月23日 13:03:09bennorthsetrecipients: + bennorth, georg.brandl
2009年04月23日 13:03:09bennorthsetmessageid: <1240491789.45.0.177840065777.issue5821@psf.upfronthosting.co.za>
2009年04月23日 13:03:07bennorthlinkissue5821 messages
2009年04月23日 13:03:07bennorthcreate

AltStyle によって変換されたページ (->オリジナル) /