(no title)
ejiblabahaba | 7 months ago
F-strings are great, but trying to remember the minute differences between string interpolation, old-style formatting with %, and new-style formatting with .format(), is sort of a headache, and there's cases where it's unavoidable to switch between them with some regularity (custom __format__ methods, templating strings, logging, etc). It's great that there's ergonomic new ways of doing things, which makes it all the more frustrating to regularly have to revert to older, less polished solutions.
sfoley|7 months ago
zahlman|7 months ago
Yes: https://docs.python.org/3/whatsnew/3.12.html#whatsnew312-pep...
ctoth|7 months ago
mixmastamyk|7 months ago