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 serhiy.storchaka
Recipients Demur Rumed, dino.viehland, serhiy.storchaka
Date 2016-06-07.04:13:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465272786.82.0.88844625099.issue27127@psf.upfronthosting.co.za>
In-reply-to
Content
What if generate following code?

    GET_ITER
    JUMP_FORWARD L2
L1:
    # ...
L2:
    FOR_ITER L1

This saves one jump instruction per iteration.

Next, we can merge GET_ITER+JUMP_FORWARD in one FOR_BEGIN instruction for regular loops. Generators will start with JUMP_FORWARD.
History
Date User Action Args
2016-06-07 04:13:06serhiy.storchakasetrecipients: + serhiy.storchaka, dino.viehland, Demur Rumed
2016-06-07 04:13:06serhiy.storchakasetmessageid: <1465272786.82.0.88844625099.issue27127@psf.upfronthosting.co.za>
2016-06-07 04:13:06serhiy.storchakalinkissue27127 messages
2016-06-07 04:13:06serhiy.storchakacreate