Skip to content

Instantly share code, notes, and snippets.

@martinleblanc
Created August 27, 2018 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinleblanc/fe5286bfbd205dd965b007649e49087f to your computer and use it in GitHub Desktop.
Save martinleblanc/fe5286bfbd205dd965b007649e49087f to your computer and use it in GitHub Desktop.
Question 1 error
$ python __init__.py
Hello, World!
Traceback (most recent call last):
File "__init__.py", line 3, in <module>
module1.function1()
File "/Users/scott/projects/sandbox/python/circular-dep-test/module1/__init__.py", line 5, in function1
module2.function2()
File "/Users/scott/projects/sandbox/python/circular-dep-test/module2/__init__.py", line 6, in function2
module1.function3()
AttributeError: 'module' object has no attribute 'function3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment