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
Next Next commit
A syntax warning is raised in 3.11 beta 1
  • Loading branch information
hugovk committed May 9, 2022
commit 10d74b08ca6aacae7deafd61b46e09fcd40c1a0c
5 changes: 2 additions & 3 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,10 @@ although there is currently no date scheduled for their removal.
for example ``0in x``, ``1or x``, ``0if 1else 2``. It allows confusing
and ambiguous expressions like ``[0x1for x in y]`` (which can be
interpreted as ``[0x1 for x in y]`` or ``[0x1f or x in y]``).
A deprecation warning is raised if the numeric literal is
A syntax warning is raised if the numeric literal is
immediately followed by one of keywords :keyword:`and`, :keyword:`else`,
:keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`.
In future releases it will be changed to syntax warning, and finally to
syntax error. (:issue:`43833`)
In a future release it will be changed to a syntax error. (:issue:`43833`)
Comment thread
ezio-melotti marked this conversation as resolved.
Outdated


Removed
Expand Down