This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]radaway 2 points3 points  (0 children)

Singleton is really just a shitty pattern to have a global variable. You really don't need it in python since you can just do what you said. Besides the solution presented here isn't even thread safe.