Message376881
Vinay raises a good point about performance that's well worth being aware of, especially with expensive objects (as he says). But since f-strings are much faster than other formatting (and especially .format()), there's a tradeoff. If I have something that I know is likely to be logged, sometimes I'll format it with f-strings. |
|
Date |
User |
Action |
Args |
2020-09-14 15:17:44 | eric.smith | set | recipients:
+ eric.smith, vinay.sajip, shubham.25powertech |
2020-09-14 15:17:44 | eric.smith | set | messageid: <1600096664.38.0.0594942824479.issue41782@roundup.psfhosted.org> |
2020-09-14 15:17:44 | eric.smith | link | issue41782 messages |
2020-09-14 15:17:44 | eric.smith | create | |
|