Python singleton
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Python Singleton

A singleton metaclass for Python. Created for fun, do not use!

from singleton import singleton

class C(object):

a = C()
b = C()

assert a is b