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 Trundle
Recipients Trundle, ev
Date 2011-03-15.01:57:41
SpamBayes Score 0.0012155416
Marked as misclassified No
Message-id <1300154262.54.0.940962063224.issue11513@psf.upfronthosting.co.za>
In-reply-to
Content
The infinite recursion happens because `open` in tarfile is really `TarFile.open` (see last line in the module). The builtin `open` is imported as `_open`.

I also think that explicitly checking for "fileobj" being None is a cleaner solution. With your current method (trying to open the file beforehand), you will introduce a race condition: If the file exists when you open it for the first time but has been deleted when you try to open it the second time, the exact same error will happen ("fileobj" being None, that is).
History
Date User Action Args
2011-03-15 01:57:42Trundlesetrecipients: + Trundle, ev
2011-03-15 01:57:42Trundlesetmessageid: <1300154262.54.0.940962063224.issue11513@psf.upfronthosting.co.za>
2011-03-15 01:57:42Trundlelinkissue11513 messages
2011-03-15 01:57:41Trundlecreate