[New-bugs-announce] [issue32723] codecs.open

Xiang Zhang report at bugs.python.org
Tue Jan 30 01:13:32 EST 2018

New submission from Xiang Zhang <angwerzx at 126.com>:

>>> import codecs
>>> f = codecs.open('/tmp/a', 'w', errors='replace')
>>> f.errors

Passing errors to codecs.open without encoding doesn't work. Can't get this from doc and I don't think it should silently ignore the passing argument.

components: Library (Lib)
messages: 311240
nosy: lemburg, vstinner, xiang.zhang
priority: normal
severity: normal
status: open
title: codecs.open
versions: Python 2.7, Python 3.6, Python 3.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list