diff --git a/clint/misc.py b/clint/misc.py new file mode 100644 index 0000000..2a7e87e --- /dev/null +++ b/clint/misc.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- + +class Borg(object): + """All instances of Borg have the same value.""" + _shared_state = {} + def __new__(cls, *a, **k): + obj = object.__new__(cls, *a, **k) + obj.__dict__ = cls._shared_state + return obj \ No newline at end of file