Skip to content

Instantly share code, notes, and snippets.

@rciorba
Last active December 16, 2015 01:09
Show Gist options
  • Save rciorba/5352989 to your computer and use it in GitHub Desktop.
Save rciorba/5352989 to your computer and use it in GitHub Desktop.
import test
import sys
f = test.Foo()
del test
del sys.modules["test"]
import test
print isinstance(f, test.Foo) # prints False
class Foo(object):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment