Sorry, something went wrong.
|
@methane: What do you think of this approach? Does it make any sense to have an opt-in warning? |
Sorry, something went wrong.
|
@methane: What do you think of this approach? Does it make any sense to have an opt-in warning? No. Warning everytime when encoding is omitted was @zooba 's suggestion. But he opposite to change default encoding strongly. In PEP 597 (2nd), I am proposing adding more option. macOS user can test their code easily with PYTHONTEXTENCODING=ascii. They can notice if their code is depending on default encoding is UTF-8. Anyway, I'm thinking about advertising your UTF-8 mode. |
Sorry, something went wrong.
|
Ok. I may keep this PR open to show that always emit a warning can be a bad idea :-) |
Sorry, something went wrong.
|
I wrote this PR to discuss https://www.python.org/dev/peps/pep-0597/ but it's unrelated to the implementation of this PEP :-) |
Sorry, something went wrong.
|
I abandon this PR. |
Sorry, something went wrong.
open() now emits a EncodingWarning if called with encoding=None.
https://bugs.python.org/issue37214