Python and the Singleton Pattern

Posted by dmanxiii on Stack Overflow See other posts from Stack Overflow or by dmanxiii
Published on 2008-09-03T20:53:19Z Indexed on 2010/05/02 2:57 UTC
Read the original article Hit count: 283

Filed under:
|
|

What is the best way to implement the singleton pattern in Python? It seems impossible to declare the constructor private or protected as is normally done with the Singleton pattern...

© Stack Overflow or respective owner

Related posts about python

Related posts about design-patterns