From: Terry Jan Reedy Date: Sat, 25 Sep 2021 09:04:13 +0000 (-0400) Subject: bpo-43914: Whats New 310: add new SyntaxError attributes (GH-28558) X-Git-Tag: v3.11.0a1~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71f8ff45c62bd6b792919ac7c3804a8628ae12cb;p=thirdparty%2FPython%2Fcpython.git bpo-43914: Whats New 310: add new SyntaxError attributes (GH-28558) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> --- diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 4aa0cd410d5b..de25d158bd54 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -883,7 +883,12 @@ Other Language Changes collisions when creating dictionaries and sets containing multiple NaNs. (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 ===========