-
- Downloads
builtinimport: Set __path__ attribute ASAP as it's clear we have a package.
This helps with handling "recursive" imports in sane manner, for example when foo/__init__.py has something like "from foo import submod".
Showing
- py/builtinimport.c 1 addition, 1 deletionpy/builtinimport.c
- tests/basics/import-pkg4.py 2 additions, 0 deletionstests/basics/import-pkg4.py
- tests/basics/pkg2/__init__.py 1 addition, 0 deletionstests/basics/pkg2/__init__.py
- tests/basics/pkg2/mod1.py 1 addition, 0 deletionstests/basics/pkg2/mod1.py
- tests/basics/pkg2/mod2.py 1 addition, 0 deletionstests/basics/pkg2/mod2.py
tests/basics/import-pkg4.py
0 → 100644
tests/basics/pkg2/__init__.py
0 → 100644
tests/basics/pkg2/mod1.py
0 → 100644
tests/basics/pkg2/mod2.py
0 → 100644
Please register or sign in to comment