gh-93143: Avoid NULL check in LOAD_FAST based on analysis in the compiler by sweeneyde · Pull Request #93144 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it looks like it. The assertion passed, so I removed that code.
Looking at symtable.c, It looks like every VISIT(st, arguments, ...); is immediately preceded by a symtable_enter_block(...), so parameters should be guaranteed to be at the lowest indices.