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 methane, vstinner
Date 2017-02-07.08:55:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I suggest you to look at my AST optimizer, especially the constant folding part:

And the unit tests, search for BaseConstantFoldingTests:

IHMO we must have a long test suite on this AST optimizer, because it's common that the AST changes in subtle ways, AST is complex and so we should prevent regressions. You may simply copy my unit tests.

My optimizer implements more optimization: just remove unit tests on cases which you don't want to optimize.
Date User Action Args
2017-02-07 08:55:31vstinnersetrecipients: + vstinner, methane
2017-02-07 08:55:31vstinnersetmessageid: <>
2017-02-07 08:55:31vstinnerlinkissue29469 messages
2017-02-07 08:55:30vstinnercreate