New submission from Jelle Zijlstra <jelle.zijls...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44453>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to