Skip to content

Commit 0eb57c3

Browse files
ambvterryjreedy
authored andcommitted
[3.10] bpo-43914: What's New 3.10: add new SyntaxError attributes (GH-28558) (GH-28562)
Co-authored-by: Ken Jin <[email protected]> (cherry picked from commit 71f8ff4) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent e0b61b2 commit 0eb57c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,12 @@ Other Language Changes
883883
collisions when creating dictionaries and sets containing multiple NaNs.
884884
(Contributed by Raymond Hettinger in :issue:`43475`.)
885885
886-
* 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`.)
886+
* A :exc:`SyntaxError` (instead of a :exc:`NameError`) will be raised when deleting
887+
the :const:`__debug__` constant. (Contributed by Dong-hee Na in :issue:`45000`.)
888+
889+
* :exc:`SyntaxError` exceptions now have ``end_lineno`` and
890+
``end_offset`` attributes. They will be ``None`` if not determined.
891+
(Contributed by Pablo Galindo in :issue:`43914`.)
887892
888893
New Modules
889894
===========

0 commit comments

Comments
 (0)