-
- Downloads
py: Make all LOAD_FAST ops check for unbound local.
This is necessary to catch all cases where locals are referenced before assignment. We still keep the _0, _1, _2 versions of LOAD_FAST to help reduced the byte code size in RAM. Addresses issue #457.
Showing
- py/bc0.h 0 additions, 1 deletionpy/bc0.h
- py/emitbc.c 5 additions, 11 deletionspy/emitbc.c
- py/emitpass1.c 3 additions, 1 deletionpy/emitpass1.c
- py/showbc.c 0 additions, 5 deletionspy/showbc.c
- py/vm.c 8 additions, 16 deletionspy/vm.c
- tests/basics/unboundlocal.py 19 additions, 0 deletionstests/basics/unboundlocal.py
Loading
Please register or sign in to comment