Commit fd32bc2
committed
Add RESTORE_CELL to opcode metadata, fix locals() for inlined comprehension cells
Register RESTORE_CELL (opcode 121) in _opcode_metadata.py so
test__opcode's stack_effect check passes.
In locals(), skip cell values when the same name has a set fastlocal
value. This fixes test_closure_with_inline_comprehension where a cell
variable used as an inlined comprehension iteration target should show
the comprehension's value, not the outer cell value.1 parent d912e41 commit fd32bc2
2 files changed
+13
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| 909 | + | |
909 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
910 | 922 | | |
911 | 923 | | |
912 | 924 | | |
| |||
0 commit comments