New issue 3066: Setting frame.f_lineno raises spurious SystemErrors
https://bitbucket.org/pypy/pypy/issues/3066/setting-framef_lineno-raises-spurious

Ronan Lamy:

See [test\_f\_lineno\_set\_4\(\) in 
apptest\_pyframe.py](https://bitbucket.org/pypy/pypy/src/013d6f1424147ce704f90a871caf4e3a079a5352/pypy/interpreter/test/apptest_pyframe.py#lines-168).
 The core issue is that POP\_BLOCK/END\_FINALLY opcodes can disappear if they 
happen to be in dead code, i.e. if there is an unconditional return in the 
block they end. In such a case, PyFrame.fset\_f\_lineno considers the bytecode 
invalid and raises a SystemError.


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to