Created
September 18, 2017 01:33
-
-
Save dgovil/284a2d99b87d37a9b69fd58f47a9c6e9 to your computer and use it in GitHub Desktop.
Python Circular Imports
This file contains hidden or 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 spam | |
def goodbye(name): | |
print("Goodbye {0}".format(name)) | |
if __name__ == '__main__': | |
print(spam.abc) | |
spam.greet('Dan') |
This file contains hidden or 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 foo | |
abc = '123' | |
def greet(name): | |
print("Hello, {0}".format(name)) | |
if __name__ == '__main__': | |
foo.goodbye('Mary') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment