STINNER Victor added the comment: > Are you aware of tools decoding directly co_lnotab?
Ah! I found Ned Batchelder's coverage project which has a _bytes_lines() method "adapted from dis.py in the standard library". The method uses directly co_lnotab to compute line numbers. Ok, *this project* will have to be updated if it wants to support fatoptimizer and other code transformers producing negative line numbers. Maybe I can contribute to it with a patch if my change to CPython 3.6 is accepted ;-) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26107> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com