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
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
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
___
Changes by Rasmus Ory Nielsen r...@ron.dk:
--
nosy: +rasmusory
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12559
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12559
___
___
Python-bugs-list
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
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
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:
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:
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.
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12559
___
___
11 matches
Mail list logo