Issue 15294: regression with nested namespace packages (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/59499

classification

Title: regression with nested namespace packages
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.3

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, brett.cannon, eric.smith, eric.snow, ncoghlan, pitrou, python-dev
Priority: high Keywords: patch

Created on 2012-07-08 13:16 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_nested_nspackage.py pitrou,2012-07-08 13:16
nestednspkg.patch pitrou,2012-07-08 21:45 review
Messages (5)
msg165014 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-07-08 13:16
Legacy namespace packages (handled with pkgutil) do not work anymore when they are nested. The attached test file passes under 3.2 but fails under 3.3.
msg165037 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-07-08 21:41
Here is a patch.
msg165042 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2012-07-08 22:51
The patch looks good to me. I haven't run the tests, though.
msg165113 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-07-09 19:27
New changeset a7b8c3323db9 by Antoine Pitrou in branch 'default': Issue #15294: Fix a regression in pkgutil.extend_path()'s handling of nested namespace packages. http://hg.python.org/cpython/rev/a7b8c3323db9
msg165114 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-07-09 19:28
Committed! I also backported the test to 3.2.
History
Date User Action Args
2022-04-11 14:57:32 admin set github: 59499
2012-07-09 19:28:20 pitrou set status: open -> closedresolution: fixedmessages: + stage: resolved
2012-07-09 19:27:36 python-dev set nosy: + python-devmessages: +
2012-07-08 22:51:10 eric.smith set messages: +
2012-07-08 21:51:10 Arfrever set nosy: + Arfrever
2012-07-08 21:45:08 pitrou set files: - nestednspkg.patch
2012-07-08 21:45:02 pitrou set files: + nestednspkg.patch
2012-07-08 21:41:14 pitrou set files: + nestednspkg.patchkeywords: + patchmessages: +
2012-07-08 17🔞56 eric.smith set nosy: + eric.smith
2012-07-08 13:16:05 pitrou create