[New-bugs-announce] [issue44453] Documented return type of sysconfig.get_path() is wrong

Jelle Zijlstra report at bugs.python.org
Fri Jun 18 09:39:19 EDT 2021


New submission from Jelle Zijlstra <jelle.zijlstra at gmail.com>:

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.

----------
assignee: Jelle Zijlstra
components: Documentation
messages: 396065
nosy: Jelle Zijlstra
priority: normal
severity: normal
status: open
title: Documented return type of sysconfig.get_path() is wrong
versions: Python 3.10, Python 3.11, Python 3.9

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


More information about the New-bugs-announce mailing list