Author serhiy.storchaka
Recipients Demur Rumed, eric.smith, mjpieters, serhiy.storchaka, ztane
Date 2016-07-13.18:09:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Yet one case for comparison (with msg270095):

$ ./python -m timeit -s "x = 2" -- 'f"X is {x!s}"'
1000000 loops, best of 3: 0.625 usec per loop

Seems f'{x!s}' is the fastest way to stringify a value. Thus there is an opportunity to speed up default formatting by special casing PyObject_Format() for most popular types (str and int).
Date User Action Args
2016-07-13 18:09:17serhiy.storchakasetrecipients: + serhiy.storchaka, mjpieters, eric.smith, ztane, Demur Rumed
2016-07-13 18:09:17serhiy.storchakasetmessageid: <>
2016-07-13 18:09:17serhiy.storchakalinkissue27078 messages
2016-07-13 18:09:17serhiy.storchakacreate