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

2021-01-04 Thread Yair Frid
Change by Yair Frid : -- keywords: +patch nosy: +Fongeme nosy_count: 1.0 -> 2.0 pull_requests: +22931 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24100 ___ Python tracker

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

2021-01-02 Thread Brett Cannon
New submission from Brett Cannon : 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: