mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
GH-108614: Add RESUME_CHECK
instruction (GH-108630)
This commit is contained in:
parent
d485551c9d
commit
0858328ca2
16 changed files with 519 additions and 482 deletions
|
@ -37,6 +37,7 @@ FORBIDDEN_NAMES_IN_UOPS = (
|
|||
"import_from",
|
||||
"import_name",
|
||||
"_PyObject_CallNoArgs", # Proxy for BEFORE_WITH
|
||||
"TIER_ONE_ONLY",
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -362,7 +362,8 @@ class Parser(PLexer):
|
|||
if tkn := self.expect(lx.IDENTIFIER):
|
||||
if self.expect(lx.COMMA):
|
||||
if not (size := self.expect(lx.IDENTIFIER)):
|
||||
raise self.make_syntax_error("Expected identifier")
|
||||
if not (size := self.expect(lx.NUMBER)):
|
||||
raise self.make_syntax_error("Expected identifier or number")
|
||||
if self.expect(lx.RPAREN):
|
||||
if self.expect(lx.EQUALS):
|
||||
if not self.expect(lx.LBRACE):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue