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 antoine.pietri
Recipients antoine.pietri, eric.araujo, eryksun, lars.gustaebel, martin.panter, r.david.murray, serhiy.storchaka
Date 2014-04-05.20:26:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396729565.3.0.037487586771.issue21044@psf.upfronthosting.co.za>
In-reply-to
Content
Well, that seems complicated: you can't overwrite a io.FileIO().name attribute, and doing so would be nonsensical for tarfile, which would try to perform IO operations on a random file descriptor... Also, I can't think of any case where a .name attribute could actually be bytes (I was just mirroring the code in msg214670).

Here's a patch that tries all combinations of encoding for writing, but I can't see a way to enforce manually the name attribute being an int, even for this test purposes.
History
Date User Action Args
2014-04-05 20:26:05antoine.pietrisetrecipients: + antoine.pietri, lars.gustaebel, eric.araujo, r.david.murray, martin.panter, serhiy.storchaka, eryksun
2014-04-05 20:26:05antoine.pietrisetmessageid: <1396729565.3.0.037487586771.issue21044@psf.upfronthosting.co.za>
2014-04-05 20:26:05antoine.pietrilinkissue21044 messages
2014-04-05 20:26:05antoine.pietricreate