[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning
Marc-Andre Lemburg
report at bugs.python.org
Wed Mar 31 05:36:33 EDT 2021
Marc-Andre Lemburg <mal at egenix.com> added the comment:
On 31.03.2021 11:30, STINNER Victor wrote:
>
> To me, it sounds really weird to accept an encoding when a file is opened in binary mode. open(filename, "rb", encoding="locale") looks like a bug.
Same here.
If encoding is used as an argument and then not used, this is a bug,
not a feature :-)
----------
nosy: +lemburg
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43510>
_______________________________________
More information about the Python-bugs-list
mailing list