[issue32723] codecs.open silently ignores argument errors

Xiang Zhang report at bugs.python.org
Wed Jan 31 09:34:27 EST 2018


Xiang Zhang <angwerzx at 126.com> added the comment:

Honestly speaking I am not interested in Python3. I think codecs.open will be deprecated one day in Python3 and Victor has raised it long ago. See #8796.

And in Python2, codecs.open is still in use. errors could still function when you are writing, encoding, just as the example I give. So now if encoding is not given, the builtin open is used, no matter errors is given or not. Is it reasonable to change the logic to either encoding or errors is given, we don't use the builtin open but the StreamReaderWriter wrapper?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32723>
_______________________________________


More information about the Python-bugs-list mailing list