]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] bpo-43914: What's New 3.10: add new SyntaxError attributes (GH-28558) (GH...
authorŁukasz Langa <lukasz@langa.pl>
Sat, 25 Sep 2021 09:32:26 +0000 (11:32 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Sep 2021 09:32:26 +0000 (11:32 +0200)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 71f8ff45c62bd6b792919ac7c3804a8628ae12cb)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/whatsnew/3.10.rst

index 21cc56ec7a8ba7e6283f021000deaf3f425872df..c11fe41659c2096e2ec91c028711bba2e231c347 100644 (file)
@@ -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
 ===========