Message346654
I can't reproduce:
>>> from importlib import abc
>>> from . import util
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'util' from '__main__' (unknown location)
>>> import importlib.util
>>>
Did you happen to do an `import *` prior to this in your REPL? If so that might explain it as you could have pulled in __package__ and such and that's used to resolve relative imports. |
|
Date |
User |
Action |
Args |
2019-06-26 18:05:28 | brett.cannon | set | recipients:
+ brett.cannon, eric.smith, Ben Lewis2 |
2019-06-26 18:05:28 | brett.cannon | set | messageid: <1561572328.47.0.816332616208.issue37409@roundup.psfhosted.org> |
2019-06-26 18:05:28 | brett.cannon | link | issue37409 messages |
2019-06-26 18:05:28 | brett.cannon | create | |
|