[issue36053] pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.path

2019-07-24 Thread Piotr Karkut
Piotr Karkut added the comment: bump -- ___ Python tracker <https://bugs.python.org/issue36053> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36053] pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.path

2019-05-28 Thread Piotr Karkut
Piotr Karkut added the comment: Bump? -- ___ Python tracker <https://bugs.python.org/issue36053> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36053] pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.path

2019-04-08 Thread Piotr Karkut
Piotr Karkut added the comment: Nick: From what I've checked, it jumps in case the module is already imported. The problem is that the original implementation is quite naive, and it's trying to import the module before looking for it in `sys.modules` - So if the module with a conflicting

[issue36053] pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.path

2019-03-28 Thread Piotr Karkut
Piotr Karkut added the comment: Bump -- ___ Python tracker <https://bugs.python.org/issue36053> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36053] pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.path

2019-02-20 Thread Piotr Karkut
Change by Piotr Karkut : -- keywords: +patch pull_requests: +11982 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36053> ___ ___ Py

[issue36053] pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.path

2019-02-20 Thread Piotr Karkut
Change by Piotr Karkut : -- title: pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.pah -> pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.path ___ Pyt

[issue36053] pkgutil.walk_packages jumps out from given path if there is package with the same name in sys.pah

2019-02-20 Thread Piotr Karkut
New submission from Piotr Karkut : When walk_packages encounter a package with a name that is available in sys.path, it will abandon the current package, and start walking the package from the sys.path. Consider this file layout: ``` PYTHONPATH/ ├──package1/ | ├──core