[3.11] gh-104615: don't make unsafe swaps in apply_static_swaps (GH-104620). by carljm · Pull Request #104636 · python/cpython
This required manual backport, but mostly just to eliminate all the stuff from the 3.12 PR that had to do with directly testing the optimizer, since the APIs for that don't exist in 3.11. Also there's no STORE_FAST_MAYBE_NULL. Still a pretty straightforward backport, but since it was manual I'll wait for review.