[issue12559] gzip.open() needs an optional encoding argument

2012-06-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I already fixed this without knowing about this issue; see 55202ca694d7. storchaka: Why not use io.TextWrapper? I think it is the right answer for this issue. The proposed patch (and the code I committed) *do* use TextIOWrapper. Unless

[issue12559] gzip.open() needs an optional encoding argument

2012-06-25 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Why not use io.TextWrapper? I think it is the right answer for this issue. -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559

[issue12559] gzip.open() needs an optional encoding argument

2012-06-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +nadeem.vawda versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___

[issue12559] gzip.open() needs an optional encoding argument

2011-11-25 Thread Rasmus Ory Nielsen
Changes by Rasmus Ory Nielsen r...@ron.dk: -- nosy: +rasmusory ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___ ___ Python-bugs-list

[issue12559] gzip.open() needs an optional encoding argument

2011-07-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___ ___ Python-bugs-list

[issue12559] gzip.open() needs an optional encoding argument

2011-07-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If we go this way, the errors and newline argument should be added as well. -- nosy: +pitrou stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559

[issue12559] gzip.open() needs an optional encoding argument

2011-07-15 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: If we go this way, the errors and newline argument should be added as well. Yeah, I thought about that. I can make a new patch, that implement this, if needed. Though it seems there is a real problem, the one that Amaury Forgeot d'Arc

[issue12559] gzip.open() needs an optional encoding argument

2011-07-14 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: gzip.open() should parallel file.open() so that that zipped files can be read in the same way as regular files: for line in gzip.open('notes.txt', 'r', encoding='latin-1'): print(line.rstrip()) -- components:

[issue12559] gzip.open() needs an optional encoding argument

2011-07-14 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Here is a patch. If the code changes are acceptable I can also make a documentation patch. (I'm surprised to see 3.2 in Versions. I thought 3.2 only gets bugfixes...) -- keywords: +patch nosy: +durban Added file:

[issue12559] gzip.open() needs an optional encoding argument

2011-07-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: There remains a difference between open() and gzip.open(): open(filename, 'r', encoding=None) is a text file (with a default encoding), gzip.open() with the same arguments returns a binary file. Don't know how to fix this though.

[issue12559] gzip.open() needs an optional encoding argument

2011-07-14 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___ ___