[issue28307] Accelerate 'string' % (value, ...) by using formatted string literals

Serhiy Storchaka report at bugs.python.org
Thu Sep 29 08:40:20 EDT 2016


Serhiy Storchaka added the comment:

Thanks for the correction Antti. Yes, this is what I initially meant. This optimization is applicable only if the left argument of % is a literal string and the right argument is a tuple expression. Saying about `'%s' % x` I meant a component of the tuple.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28307>
_______________________________________


More information about the Python-bugs-list mailing list