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 Neal.Norwitz, vstinner
Date 2013-03-16.13:34:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> The 2 JUMP_ABSOLUTEs should be optimized away since the code is equivalent to: if a and b and c: as in:

Oh, I misread this sentence. I read that you would like to replace "if a: if b:" with "if a and b:". But it can be optimized differently: the useless jump can be removed during the bytecode generation.

I implemented replace "if a: if b:" with "if a and b:" in astoptimizer:

I already implemented removal of useless jumps in my second project, registervm:

Read this file to learn more about my registervm project:
Date User Action Args
2013-03-16 13:34:16vstinnersetrecipients: + vstinner, Neal.Norwitz
2013-03-16 13:34:16vstinnersetmessageid: <>
2013-03-16 13:34:16vstinnerlinkissue17430 messages
2013-03-16 13:34:15vstinnercreate