[mypyc] Make for loop over list memory-safe on free-threaded builds (#21686)
Don't access list items directly but use CPython C API functions for item access. Also, reading the list length should use an atomic relaxed memory order read, but changing this is lower priority and won't be fixed until later. There is no change on non-free-threaded Python builds. Work on mypyc/mypyc#1202.
J
Jukka Lehtosalo committed
c07d7888e7b61983924632036a864c4d210848fe
Parent: 523acf6
Committed by GitHub <noreply@github.com>
on 7/7/2026, 9:37:11 AM