mirror of
https://github.com/python/cpython.git
synced 2024-11-28 12:31:14 +08:00
c8165036f3
Document that lnotab can contain invalid bytecode offsets (because of terrible reasons that are difficult to fix). Make dis.findlinestarts() ignore invalid offsets in lnotab. All other uses of lnotab in CPython (various reimplementations of addr2line or line2addr in Python, C and gdb) already ignore this, because they take an address to look for, instead. Add tests for the result of dis.findlinestarts() on wacky constructs in test_peepholer.py, because it's the easiest place to add them. |
||
---|---|---|
.. | ||
Build | ||
C API | ||
Core and Builtins | ||
Documentation | ||
IDLE | ||
Library | ||
macOS | ||
Security | ||
Tests | ||
Tools-Demos | ||
Windows |