[issue27078] Make f'' strings faster than .format: BUILD_STRING opcode?

Antti Haapala report at bugs.python.org
Sun Jul 10 17:35:56 EDT 2016


Antti Haapala added the comment:

And the expected performance for optimal `f'X is {x}'` code would be *faster* than `"'X is %s' % (x,)"` which still needs to interpret the string at runtime, and build a proper tuple object on stack.

----------

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


More information about the Python-bugs-list mailing list