[Python-Dev] Re: Non-monotonically increasing line numbers in dis.findlinestarts() output

2021年3月17日 16:08:40 -0700

On 3/17/21 6:41 PM, MRAB wrote:
On 2021年03月17日 22:10, Skip Montanaro wrote:
I stumbled on this while trying to generate a line number table in my side project register VM. As I understand it, the line number delta in the output table is supposed to always be >= 0. In my code I'm using dis.findlinestarts() to determine the line numbers for each block. Perhaps I should be modifying its results. OTOH, maybe it's a bug. (If that's the consensus, I will create an issue.)
co_lnotab has had negative deltas since 3.6.
--Ned.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/EK2O6SE6J6LROGNHKPQYTQNJH5VFE2M4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to