SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

GH-96793: Change `FOR_ITER` to not pop the iterator on exhaustion. (GH-96801)

Change FOR_ITER to have the same stack effect regardless of whether it branches or not.
Performance is unchanged as FOR_ITER (and specialized forms jump over the cleanup code).
M
Mark Shannon committed
22863df7ca5f9cd01a40ab3dce3d067ec5666081
Parent: e60892f
Committed by GitHub <noreply@github.com> on 10/27/2022, 10:55:03 AM