[issue13989] gzip always returns byte strings, no text mode

2012-05-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 55202ca694d7 by Nadeem Vawda in branch 'default': Closes #13989: Add support for text modes to gzip.open(). http://hg.python.org/cpython/rev/55202ca694d7 -- resolution: - fixed stage: - committed/rejected

[issue13989] gzip always returns byte strings, no text mode

2012-02-11 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: The problem here is that gzip.GzipFile does not support text mode, only binary mode. Unfortunately, its __init__ method doesn't handle unexpected mode strings sensibly, so you get a confusing error message. If you need to open a compressed

[issue13989] gzip always returns byte strings, no text mode

2012-02-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4b32309631da by Nadeem Vawda in branch '3.2': Issue #13989: Document that GzipFile does not support text mode. http://hg.python.org/cpython/rev/4b32309631da New changeset 8dbe8faea0e7 by Nadeem Vawda in branch

[issue13989] gzip always returns byte strings, no text mode

2012-02-10 Thread Peter
New submission from Peter p.j.a.c...@googlemail.com: Consider the following example where I have a gzipped text file, $ python3 Python 3.2 (r32:88445, Feb 28 2011, 17:04:33) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import

[issue13989] gzip always returns byte strings, no text mode

2012-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13989 ___ ___ Python-bugs-list