[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com