On 09Aug2019 0905, Serhiy Storchaka wrote:
09.08.19 18:30, Guido van Rossum пише:
This discussion looks like there's no end in sight. Maybe the Steering Council should take a vote?

Possible options:

1. SyntaxWarning in 3.8+ (the current status).
2. DeprecationWarning in 3.8, SyntaxWarning in 3.9+ (revert changes in 3.8 only).
3. DeprecationWarning in 3.8 and 3.9 (revert changes in master and 3.8).
4. No warnings at all.

I also posted another possible option that helps solve the real problem faced by users, and not just the "we want to have a warning" problem that is purely ours.

* change the SyntaxWarning into a default-silenced one that fires every time a 
.pyc is loaded (this is the hard part, but it's doable)
* change pathlib.PureWindowsPath, os.fsencode and os.fsdecode to explicitly 
warn when the path contains control characters
* change the PyErr_SetExcFromWindowsErrWithFilenameObjects function to append (or chain) an extra message when either of the filenames contains control characters (or change OSError to do it, or the default sys.excepthook)

Cheers,
Steve
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/GZJPZ55OR2CIERO5Q4ETPZPAQZSFAEDD/

Reply via email to