mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-43914: Whats New 310: add new SyntaxError attributes (GH-28558)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
This commit is contained in:
parent
784905dbef
commit
71f8ff45c6
1 changed files with 6 additions and 1 deletions
|
@ -883,7 +883,12 @@ Other Language Changes
|
||||||
collisions when creating dictionaries and sets containing multiple NaNs.
|
collisions when creating dictionaries and sets containing multiple NaNs.
|
||||||
(Contributed by Raymond Hettinger in :issue:`43475`.)
|
(Contributed by Raymond Hettinger in :issue:`43475`.)
|
||||||
|
|
||||||
* A :exc:`SyntaxError` (instead of a :exc:`NameError`) will be raised when deleting the :const:`__debug__` constant. (Contributed by Dong-hee Na in :issue:`45000`.)
|
* A :exc:`SyntaxError` (instead of a :exc:`NameError`) will be raised when deleting
|
||||||
|
the :const:`__debug__` constant. (Contributed by Dong-hee Na in :issue:`45000`.)
|
||||||
|
|
||||||
|
* :exc:`SyntaxError` exceptions now have ``end_lineno`` and
|
||||||
|
``end_offset`` attributes. They will be ``None`` if not determined.
|
||||||
|
(Contributed by Pablo Galindo in :issue:`43914`.)
|
||||||
|
|
||||||
New Modules
|
New Modules
|
||||||
===========
|
===========
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue