8000 bpo-43833: Emit warnings for numeric literals followed by keyword by serhiy-storchaka · Pull Request #25466 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Doc/whatsnew/3.10.rst
  • Loading branch information
pablogsal authored Jun 8, 2021
commit f9ffba0751422c12edfbb11a1a8918a8a60d197f
6 changes: 3 additions & 3 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1649,9 +1649,9 @@ that may require changes to your code.
Changes in the Python syntax
----------------------------

* Deprecation warning is now emitted when compile previously valid syntax
if the numeric literal is immediately followed by keyword (like in ``0in x``).
If future releases it will be changed to syntax warning, and finally to
* Deprecation warning is now emitted when compiling previously valid syntax
if the numeric literal is immediately followed by a keyword (like in ``0in x``).
If future releases it will be changed to syntax warning, and finally to a
syntax error. To get rid of the warning and make the code compatible with
future releases just add a space between the numeric literal and the
following keyword.
Expand Down
0