GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — gh-81548: Deprecate octal sequences with value larger than 0o377 by serhiy-storchaka · Pull Request #91668 · python/cpython Conversation
Member
Closes #81548.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
serhiy-storchaka
requested review from
lysnikolaou and
pablogsal
as code owners
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
If possible, I would suggest extending the information about this deprecation warning as it is not obvious for people reading this why is this made and when does the deprecation warning fires off.
$ cat a.py print("\407", b"\407") $ python3.11 a.py ć b'\x07' $ python3.11 -W default a.py //a.py:1: DeprecationWarning: invalid octal escape sequence '\407' print("\407", b"\407") //a.py:1: DeprecationWarning: invalid octal escape sequence '\407' print("\407", b"\407") ć b'\x07' I believe this comes from the default warning filter. Idk if we really want it described there, but imho it never hurts to provide more information. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Will give this a go soon 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
octal escapes applied inconsistently throughout the interpreter and lib
There was an error while loading. Please reload this page.