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 methane
Recipients benjamin.peterson, brett.cannon, georg.brandl, methane, ncoghlan, serhiy.storchaka, vstinner, yselivanov
Date 2017-02-07.11:32:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Do you mean ?

This doesn't affect, maybe.
Constant folding is executed right before producing bytecode.
It doesn't affect to PyCF_ONLY_AST.

BTW, how do you feel

I feel it's too much only for constant folding, but it is too less for other advanced optimizations.
Actually, original patch in #11549 implements other optimizations
ported from peephole in compile.c.
And most tough part of updating this patch is resolve conflict with this commit.

I'll try to remove and ast_opt.ct in next version.
Date User Action Args
2017-02-07 11:32:27methanesetrecipients: + methane, brett.cannon, georg.brandl, ncoghlan, vstinner, benjamin.peterson, serhiy.storchaka, yselivanov
2017-02-07 11:32:27methanesetmessageid: <>
2017-02-07 11:32:27methanelinkissue29469 messages
2017-02-07 11:32:27methanecreate