[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj
Gregory P. Smith
report at bugs.python.org
Wed Jan 18 03:26:09 CET 2012
Gregory P. Smith <greg at krypto.org> added the comment:
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.
----------
assignee: -> gregory.p.smith
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13781>
_______________________________________
More information about the Python-bugs-list
mailing list