Browse Source
bpo-28936: Detect lexically first syntax error first (#4097)
bpo-28936: Detect lexically first syntax error first (#4097)
Lexically first global and nonlocal syntax errors at given scope should be detected first.pull/4142/head
committed by
Serhiy Storchaka
3 changed files with 45 additions and 27 deletions
-
36Lib/test/test_syntax.py
-
2Misc/NEWS.d/next/Core and Builtins/2017-10-23-23-39-26.bpo-28936.C288Jh.rst
-
34Python/symtable.c
@ -0,0 +1,2 @@ |
|||
Ensure that lexically first syntax error involving a parameter and ``global`` |
|||
or ``nonlocal`` is detected first at a given scope. Patch by Ivan Levkivskyi. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue