mirror of
https://github.com/python/cpython.git
synced 2026-07-30 15:31:38 +08:00
Replace the state->repeat checks that guard mark saving and restoring with an explicit save_marks counter maintained where repeat and possessive contexts are entered and left. Each push is now paired with a pop decided by the same condition. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>