Message412473
| Author |
rhettinger |
| Recipients |
ariebovenberg, docs@python, eric.smith, erlendaasland, rhettinger, tinchester, vinay.sajip |
| Date |
2022-02-03.21:36:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1643924170.56.0.612581318118.issue46200@roundup.psfhosted.org> |
| In-reply-to |
|
| Content |
> Eric is absolutely right, due to function calls being
> somewhat slow in Python the performance argument in
> practice falls in favor of f-strings.
Also f-strings can evaluate expressions in the template which is also a big win:
f('Pending {len(req)} requests: {req[0]!r} ... {req[-1]!r}') |
|