This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:32adminsetgithub: 59499
2012-07-09 19:28:20pitrousetstatus: open -> closed
resolution: fixed
messages: + msg165114

stage: resolved
2012-07-09 19:27:36python-devsetnosy: + python-dev
messages: + msg165113
2012-07-08 22:51:10eric.smithsetmessages: + msg165042
2012-07-08 21:51:10Arfreversetnosy: + Arfrever
2012-07-08 21:45:08pitrousetfiles: - nestednspkg.patch
2012-07-08 21:45:02pitrousetfiles: + nestednspkg.patch
2012-07-08 21:41:14pitrousetfiles: + nestednspkg.patch
keywords: + patch
messages: + msg165037
2012-07-08 17:18:56eric.smithsetnosy: + eric.smith
2012-07-08 13:16:05pitroucreate