Message412473
> 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}') |
|
Date |
User |
Action |
Args |
2022-02-03 21:36:10 | rhettinger | set | recipients:
+ rhettinger, vinay.sajip, eric.smith, docs@python, tinchester, erlendaasland, ariebovenberg |
2022-02-03 21:36:10 | rhettinger | set | messageid: <1643924170.56.0.612581318118.issue46200@roundup.psfhosted.org> |
2022-02-03 21:36:10 | rhettinger | link | issue46200 messages |
2022-02-03 21:36:10 | rhettinger | create | |
|