Skip to content

Instantly share code, notes, and snippets.

Last active Oct 3, 2015
What would you like to do?
class Bar:
import sys
import bar
sys.modules['foo'] = bar
Traceback (most recent call last):
File "", line 4, in <module>
assert FooBar == BarBar
from import Bar as FooBar
from import Bar as BarBar
assert FooBar == BarBar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment