Created
May 16, 2012 14:56
-
-
Save cocoatomo/2710971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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