Welcome, guest | Sign In | My Account | Store | Cart
class Borg:
    __shared_state = {}
    def __init__(self):
        self.__dict__ = self.__shared_state
    # and whatever else you want in your class -- that's all!

History

  • revision 2 (22 years ago)
  • previous revisions are not available