Skip to content

Instantly share code, notes, and snippets.

@cocoatomo
Created May 16, 2012 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocoatomo/2710971 to your computer and use it in GitHub Desktop.
Save cocoatomo/2710971 to your computer and use it in GitHub Desktop.
class Hoge():
def __init__(self):
def disabled_init(self):
raise NotImplementedError('__init__ disabled')
Hoge.__init__ = disabled_init
if __name__ == '__main__':
print 'h = Hoge()'
h = Hoge()
print 'h2 = Hoge()'
h2 = Hoge()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment