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: Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__
Type: Stage: resolved
Components: Documentation Versions: Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: Fongeme, brett.cannon, miss-islington
Priority: low Keywords: easy, patch

Created on 2021-01-02 20:27 by brett.cannon, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24100 merged Fongeme, 2021-01-04 20:10
PR 24144 merged miss-islington, 2021-01-06 17:42
PR 24149 merged Fongeme, 2021-01-07 10:29
Messages (4)
msg384238 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2021-01-02 20:27
Since importlib now prefers `__spec__` over `__package__`, https://docs.python.org/3/library/importlib.html#importlib.util.resolve_name should be updated to use `__spec__.parent` instead in the. example.
msg384525 - (view) Author: miss-islington (miss-islington) Date: 2021-01-06 17:42
New changeset ff8458b918050168acda1ad6d079f52b8effa821 by Yair Frid in branch 'master':
bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100)
https://github.com/python/cpython/commit/ff8458b918050168acda1ad6d079f52b8effa821
msg384598 - (view) Author: miss-islington (miss-islington) Date: 2021-01-07 18:06
New changeset 8c3914aef47e6e5a31b48a0b1f165ec3f4dc4c98 by Yair Frid in branch '3.9':
[3.9] bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24149)
https://github.com/python/cpython/commit/8c3914aef47e6e5a31b48a0b1f165ec3f4dc4c98
msg384599 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2021-01-07 18:07
New changeset ca8e96d1edbeb536f58da91e607082463398fce1 by Miss Islington (bot) in branch '3.8':
bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24144)
https://github.com/python/cpython/commit/ca8e96d1edbeb536f58da91e607082463398fce1
History
Date User Action Args
2022-04-11 14:59:39adminsetgithub: 86977
2021-01-07 18:07:56brett.cannonsetmessages: + msg384599
2021-01-07 18:06:22miss-islingtonsetmessages: + msg384598
2021-01-07 10:29:33Fongemesetpull_requests: + pull_request22977
2021-01-06 17:42:44brett.cannonsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-01-06 17:42:33miss-islingtonsetmessages: + msg384525
2021-01-06 17:42:30miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request22973
2021-01-06 00:07:32brett.cannonsettitle: Update docs for importlib.util.resolve_name() to use __spec__ instead of __package__ -> Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__
2021-01-04 20:10:30Fongemesetkeywords: + patch
nosy: + Fongeme

pull_requests: + pull_request22931
stage: needs patch -> patch review
2021-01-02 20:27:58brett.cannoncreate