mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-91870: Remove unsupported SRE opcode CALL (GH-91872)
It was initially added to support atomic groups, but that support was never fully implemented, and CALL was only left in the compiler, but not interpreter and parser. ATOMIC_GROUP is now used to support atomic groups.
This commit is contained in:
parent
1af871eeee
commit
f703c96cf0
6 changed files with 38 additions and 52 deletions
|
@ -164,12 +164,6 @@ def _compile(data, pattern, flags):
|
|||
_compile(data, av[1], flags)
|
||||
emit(SUCCESS)
|
||||
code[skip] = _len(code) - skip
|
||||
elif op is CALL:
|
||||
emit(op)
|
||||
skip = _len(code); emit(0)
|
||||
_compile(data, av, flags)
|
||||
emit(SUCCESS)
|
||||
code[skip] = _len(code) - skip
|
||||
elif op is AT:
|
||||
emit(op)
|
||||
if flags & SRE_FLAG_MULTILINE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue