This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients serhiy.storchaka, vstinner
Date 2016-05-26.13:29:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwbaT+eo+1O54fcVFpUsxq4+Ri_01qoXxOpK+BzR-Hr0_g@mail.gmail.com>
In-reply-to <1464268387.83.0.862540030058.issue27129@psf.upfronthosting.co.za>
Content
> Changes f_lasti, tb_lasti etc to count code units instead of bytes.

I asked Demur to not break f_lasti. I don't understand if this change
breaks applications using f_lasti or not.

For example, asyncio/coroutines.py uses:

            if caller.f_code.co_code[caller.f_lasti] != _YIELD_FROM:
                value = value[0]

Does this code still work with your change?

Maybe this code is already broken by wordcode, but it doesn't really
matter since it should only be used on the exact version 3.4.0. The
code works around a bug in Python 3.4.0, fixed in Python 3.4.1 (issue
#21209).

Other known users of f_lasti are development tools like debuggers
(pdb), profilers, code coverage, etc. We should check these tools.
History
Date User Action Args
2016-05-26 13:29:29vstinnersetrecipients: + vstinner, serhiy.storchaka
2016-05-26 13:29:29vstinnerlinkissue27129 messages
2016-05-26 13:29:29vstinnercreate