Author serhiy.storchaka
Recipients Demur Rumed, abarnert, benjamin.peterson, brett.cannon, georg.brandl, haypo, josh.r, ncoghlan, python-dev, rhettinger, serhiy.storchaka, yselivanov
Date 2016-05-26.09:11:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464253915.39.0.511390134967.issue26647@psf.upfronthosting.co.za>
In-reply-to
Content
I think we should make yet few related changes:

* Change meaning of jump offsets. They should count not bytes, but code units (16-bit words). This will extend the range addressed by short commands (from 256 bytes to 256 words) and simplify ceval.c.
* Change f_lasti, tb_lasti etc to count code units instead of bytes.
* Change disassembler to show addresses in code units, not bytes.

These changes break compatibility (already broken by switching to 16-bit bytecode). The first one breaks compatibility with compiled bytecode and needs incrementing the magic number. That is why I think we should do this in this issue.

What is better, provide one large patch or separate simpler patches for every stage?
History
Date User Action Args
2016-05-26 09:11:55serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, georg.brandl, rhettinger, ncoghlan, haypo, benjamin.peterson, python-dev, yselivanov, abarnert, josh.r, Demur Rumed
2016-05-26 09:11:55serhiy.storchakasetmessageid: <1464253915.39.0.511390134967.issue26647@psf.upfronthosting.co.za>
2016-05-26 09:11:55serhiy.storchakalinkissue26647 messages
2016-05-26 09:11:55serhiy.storchakacreate