[issue42811] Update docs for importlib.util.resolve_name() to use __spec__ instead of __package__

Brett Cannon report at bugs.python.org
Sat Jan 2 15:27:59 EST 2021


New submission from Brett Cannon <brett at python.org>:

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.

----------
assignee: brett.cannon
components: Documentation
keywords: easy
messages: 384238
nosy: brett.cannon
priority: low
severity: normal
stage: needs patch
status: open
title: Update docs for importlib.util.resolve_name() to use __spec__ instead of __package__
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42811>
_______________________________________


More information about the Python-bugs-list mailing list