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 nnorwitz, vstinner
Date 2013-01-29.00:09:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> and realized this could be rewritten by the interpreter as:

Yeah, it could but it's tricky to implement it. The current peephole is implemented in C. You may first try to implement it using my astoptimizer project which is implemented in Python. At least to check if it's possible or not :-)

astoptimizer only optimizes str%args if it succeed at compile time, so if all arguments are constant and no error is raised.
Date User Action Args
2013-01-29 00:09:11vstinnersetrecipients: + vstinner, nnorwitz
2013-01-29 00:09:11vstinnersetmessageid: <>
2013-01-29 00:09:11vstinnerlinkissue17068 messages
2013-01-29 00:09:11vstinnercreate