03 September
Most classes in Python should have been functions. The test is not “is this a noun” — it is whether there is invalid state a class can prevent.
Learn AI Coding, AI Agents and Software Engineering by Building Real Projects
Most classes in Python should have been functions. The test is not “is this a noun” — it is whether there is invalid state a class can prevent.
What the f actually compiles to, the whole format spec language, __format__, and the three jobs an f-string is the wrong tool for. Every output run on Python 3.12.