python: from x import y changes previous import result
问题 I am trying to understand the package and module name shadowing rules in python and stumbled across a case where I do not understand why the results that I see make any sense. This cases happens for python 2 (with from future import absolute_imports ) and python 3. Assuming I have the following folder structure: ├── mypackage │ ├── argparse.py │ └── __init__.py └── script.py mypackage is my custom top-level package, where I have a module shadowing the standard argparse module. Inside my