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