Skip to content

Instantly share code, notes, and snippets.

VaderGirl13 tbrooks007

  • North Bergen, NJ
Block or report user

Report or block tbrooks007

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View singleton.py
import threading
# Based on tornado.ioloop.IOLoop.instance() approach.
# See https://github.com/facebook/tornado
class SingletonMixin(object):
__singleton_lock = threading.Lock()
__singleton_instance = None
@classmethod
You can’t perform that action at this time.