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
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
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
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
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13989
___
___
Python-bugs-list