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 <1359418151.88.0.124646642163.issue17068@psf.upfronthosting.co.za>
In-reply-to
Content
> 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 :-)

https://bitbucket.org/haypo/astoptimizer

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