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: Jelle Zijlstra Nosy List: Jelle Zijlstra, miss-islington
Priority: normal Keywords: patch

Created on 2021-06-18 13:39 by Jelle Zijlstra, last changed 2021-07-26 19:36 by lukasz.langa. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 26785 merged Jelle Zijlstra, 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 (Jelle Zijlstra) * (Python triager) 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
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:45Jelle Zijlstrasetkeywords: + patch
stage: patch review
pull_requests: + pull_request25370
2021-06-18 13:39:19Jelle Zijlstracreate