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

Serhiy Storchaka report at bugs.python.org
Tue Sep 6 15:23:54 EDT 2016


Serhiy Storchaka added the comment:

Thank you for your review Eric. I considered passing NULL, but as Antti said, it is already used for space separated concatenation. PyUnicode_New(0, 0) is the obvious way to get an empty string, and I think it is fast enough. If this affects performance we can add additional microoptimization later.

----------
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list