Last active
December 16, 2015 01:09
-
-
Save rciorba/5352989 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
import test | |
import sys | |
f = test.Foo() | |
del test | |
del sys.modules["test"] | |
import test | |
print isinstance(f, test.Foo) # prints False |
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 Foo(object): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment