Author vstinner
Recipients Mark.Shannon, brett.cannon, gvanrossum, python-dev, rhettinger, serhiy.storchaka, vstinner
Date 2016-01-18.13:38:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453124320.21.0.801513038189.issue26107@psf.upfronthosting.co.za>
In-reply-to
Content
> 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 ;-)
History
Date User Action Args
2016-01-18 13:38:40vstinnersetrecipients: + vstinner, gvanrossum, brett.cannon, rhettinger, Mark.Shannon, python-dev, serhiy.storchaka
2016-01-18 13:38:40vstinnersetmessageid: <1453124320.21.0.801513038189.issue26107@psf.upfronthosting.co.za>
2016-01-18 13:38:40vstinnerlinkissue26107 messages
2016-01-18 13:38:39vstinnercreate