Created
October 4, 2011 15:25
-
-
Save iffy/1261933 to your computer and use it in GitHub Desktop.
import error
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
from datetime import datetime, timedelta | |
from foo.datetime import something |
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
something = 'something' |
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
foo | |
foo/__init__.py | |
foo/bar.py | |
foo/datetime.py |
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
$ python -c "from foo.bar import *" | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "foo/bar.py", line 1, in <module> | |
from datetime import datetime, timedelta | |
ImportError: cannot import name datetime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment