The Borg design pattern

A link published by James Bennett on January 13, 2009. Tagged with python and singleton. One comment posted.

I actually ended up using this in real code at work, and it seems the simplest and most error-free way to do a “singleton” in Python.

Visit site

On January 14, 2009, jos3ph said:

Did you use the version listed at the top of the page or one of the versions from the comments?

I noticed that this one: http://code.activestate.com/recipes/66531/#c20 uses new-style classes.

Comments for this link are closed. If you'd like to share your thoughts on this link with me, please contact me directly.

ponybadge