[issue32723] codecs.open silently ignores argument errors
Josh Rosenberg
report at bugs.python.org
Tue Jan 30 02:27:51 EST 2018
Josh Rosenberg <shadowranger+python at gmail.com> added the comment:
On both Py2 and Py3, calling codecs.open without passing an encoding argument is equivalent to adding 'b' to the mode string and calling the built-in open function directly; it returns a plain binary mode file object. The errors parameter is meaningless because no decoding is being performed (there will never be any errors to handle).
----------
nosy: +josh.r
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32723>
_______________________________________
More information about the Python-bugs-list
mailing list