pkgutil.get_data() doesn't add subpackages to parent packages when importing
Open
Nobody has claimed this yet.
3.10
3.11
3.9 (EOL)
stdlib
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| BPO | 45675 |
|---|---|
| Nosy | @brettcannon, @ncoghlan, @ericsnowcurrently, @pablogsal, @godlygeek |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2021-10-29.19:26:00.225>
labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
title = "pkgutil.get_data() doesn't add subpackages to parent packages when importing"
updated_at = <Date 2021-11-29.20:57:45.153>
user = 'https://github.com/godlygeek'
bugs.python.org fields:
activity = <Date 2021-11-29.20:57:45.153>
actor = 'godlygeek'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-10-29.19:26:00.225>
creator = 'godlygeek'
dependencies = []
files = []
hgrepos = []
issue_num = 45675
keywords = []
message_count = 4.0
messages = ['405331', '405332', '405827', '407324']
nosy_count = 5.0
nosy_names = ['brett.cannon', 'ncoghlan', 'eric.snow', 'pablogsal', 'godlygeek']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue45675'
versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the pkgutil.get_data() behavior described in the issue and inspect the standard-library package import handling involved. Done means importing data from a subpackage also makes that subpackage available through its parent package, with regression coverage for the reported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100