News for hackers. Stuff that matters.
Re:Python’s tug of war between beginner-friendly and advance... by pansa2 on Thursday February 04, 2021 @08:51PM (#26032148)
`str.format` can’t be removed completely - it’s necessary if you want to build format strings at runtime.

But otherwise, yes - make f-strings the “one obvious way to do it” and use `format` only when necessary. And get rid of the old %-formatting.

Also consider making f-strings the default: https://pyfound.blogspot.com/2020/04/all-strings-become-f-st...

There are no comments on this comment yet.