[New-bugs-announce] [issue12559] gzip.open() needs an optional encoding argument

Raymond Hettinger report at bugs.python.org
Thu Jul 14 17:31:22 CEST 2011


New submission from Raymond Hettinger <raymond.hettinger at 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: Library (Lib)
messages: 140341
nosy: rhettinger
priority: normal
severity: normal
status: open
title: gzip.open() needs an optional encoding argument
type: feature request
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12559>
_______________________________________


More information about the New-bugs-announce mailing list