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 gregory.p.smith
Recipients gregory.p.smith, jld, nadeem.vawda
Date 2012-01-18.02:26:08
SpamBayes Score 8.620815e-11
Marked as misclassified No
Message-id <1326853569.33.0.597778682391.issue13781@psf.upfronthosting.co.za>
In-reply-to
Content
thanks that looks good.

As far as fixing this for 2.7 goes, i don't like the _sound_ of it because it is gross... But i'm actually okay with having special case code in the gzip module that rejects '<fdopen>' as an actual filename and uses '' instead in that case.  It is VERY unlikely that anyone ever intentionally wants to use that as a filename.

Anything more than that (changing the actual '<fdopen>' string for example) seems too invasive and might break someone's doctests and does genuinely make it more difficult to see what a fdopened file object is from its repr.
History
Date User Action Args
2012-01-18 02:26:09gregory.p.smithsetrecipients: + gregory.p.smith, nadeem.vawda, jld
2012-01-18 02:26:09gregory.p.smithsetmessageid: <1326853569.33.0.597778682391.issue13781@psf.upfronthosting.co.za>
2012-01-18 02:26:08gregory.p.smithlinkissue13781 messages
2012-01-18 02:26:08gregory.p.smithcreate