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.

classification
Title: tarfile.TarFile fileobject use needs clarification
Type: Stage:
Components: Documentation Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: lars.gustaebel Nosy List: herrwitten, lars.gustaebel
Priority: normal Keywords:

Created on 2007-02-10 05:45 by herrwitten, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg31242 - (view) Author: Witten (herrwitten) Date: 2007-02-10 05:45
The constructor of a TarFile object expects an existing file object to have its file position at 0. This is not documented.
msg31243 - (view) Author: Witten (herrwitten) Date: 2007-02-10 05:47
A clarification: When an existing file object is used to create a TarFile object, the TarFile object expects the existing file object to have its file position at 0.
msg31244 - (view) Author: Witten (herrwitten) Date: 2007-02-11 05:35
I suppose I could make this clearer:

The user needs to know that the file object will be used from the current file position.
msg31245 - (view) Author: Lars Gustäbel (lars.gustaebel) * (Python committer) Date: 2007-02-12 09:30
Both is true: The file object will be used from the current file position which is supposed to be 0 ;-)
I changed the docs to be clearer on this (cp. rev. 53752 and rev. 53753).
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44568
2007-02-10 05:45:49herrwittencreate