[Python-Dev] Re: PEP 597: Add optional EncodingWarning

2021年2月13日 07:28:55 -0800

To demonstrate how this warning is useful, I used my reference implementation.
When I try `pip install`, I found these issues soon.
https://bugs.python.org/issue43214 (Open pth file with locale-encoding)
https://github.com/pypa/pip/pull/9608 (Not a real bug, but open JSON
file with locale-encoding)
And when creating a PR for pip, I found this issue in tox:
https://github.com/tox-dev/tox/issues/1908 (Open toml file with
locale-encoding, may not work on Windows)
Although most developers won't use this option, I and few other
developers can put `export PYTHONWARNENCODING=1` in .bashrc and will
find many possible bugs that happen only on Windows, even if they
don't use Windows daily development.
Isn't this option worth enough?
-- 
Inada Naoki <[email protected]>
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/K7PVGEHDB3BXLNFZ6UWFJOKCC337UTWO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to