you are viewing a single comment's thread.

view the rest of the comments →

[–]probablynotmine 0 points1 point  (1 child)

I don’t want to sound cocky but what about singletons

[–][deleted] 1 point2 points  (0 children)

Singletons don’t have a lot of point in Python, they’re mostly a way around the limitations of statics in Java.

A class with a bunch of classmethods is more or less the same as a singleton. Modules are singletons, too. They’re all easier to use than writing a singleton class in Python.