Message258523
> 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 ;-) |
|
Date |
User |
Action |
Args |
2016-01-18 13:38:40 | vstinner | set | recipients:
+ vstinner, gvanrossum, brett.cannon, rhettinger, Mark.Shannon, python-dev, serhiy.storchaka |
2016-01-18 13:38:40 | vstinner | set | messageid: <1453124320.21.0.801513038189.issue26107@psf.upfronthosting.co.za> |
2016-01-18 13:38:40 | vstinner | link | issue26107 messages |
2016-01-18 13:38:39 | vstinner | create | |
|