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: Documented return type of sysconfig.get_path() is wrong
Type: Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: JelleZijlstra Nosy List: JelleZijlstra, miss-islington
Priority: normal Keywords: patch

Created on 2021-06-18 13:39 by JelleZijlstra, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 26785 merged JelleZijlstra, 2021-06-18 13:46
PR 27371 merged miss-islington, 2021-07-26 16:19
PR 27372 merged miss-islington, 2021-07-26 16:19
Messages (1)
msg396065 - (view) Author: Jelle Zijlstra (JelleZijlstra) * (Python committer) Date: 2021-06-18 13:39
https://docs.python.org/3/library/sysconfig.html#sysconfig.get_path says it returns None if the name is not found, but the implementation (https://github.com/python/cpython/blame/main/Lib/sysconfig.py) uses [] and will raise KeyError instead.

Noticed by @srittau in https://github.com/python/typeshed/pull/5659. I will submit a PR.
History
Date User Action Args
2022-04-11 14:59:46adminsetgithub: 88619
2021-07-26 19:36:14lukasz.langasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-07-26 16:19:10miss-islingtonsetpull_requests: + pull_request25910
2021-07-26 16:19:05miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request25909
2021-06-18 13:46:45JelleZijlstrasetkeywords: + patch
stage: patch review
pull_requests: + pull_request25370
2021-06-18 13:39:19JelleZijlstracreate