As long as we don't encounter sys.flags.pen_is_mightier type of cases, I guess it'll be OK. :-)

On Fri, 2021-02-19 at 12:08 +0100, Victor Stinner wrote:
Environment variable names with underscore would be more readable, but
IMO consistency with all existing names matters more:
https://docs.python.org/dev/using/cmdline.html#environment-variables

So I prefer PYTHONWARNDEFAULTENCODING env var and
sys.flags.warn_default_encoding attribute names.

Victor

On Fri, Feb 19, 2021 at 9:48 AM Inada Naoki <songofacandy@gmail.com> wrote:

On Mon, Feb 15, 2021 at 3:00 PM Paul Bryan <pbryan@anode.ca> wrote:

Let the bikeshedding begin. How about with the underscores in place? More readable to my eyes.


I agree with you. Although it is not consistent with existing many
option names, it is much more readable.

Ivan, Victor, what do you think? about PYTHON_WARN_DEFAULT_ENCODING?

---
Inada Naoki  <songofacandy@gmail.com>