]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
The current documentation says it returns None if the name is not found, but (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Jul 2021 19:35:46 +0000 (12:35 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Jul 2021 19:35:46 +0000 (21:35 +0200)
commit3f1389459abe415299d340c6af77d5ffe20c8fd6
tree267070ba84f20db417101956c9637756b5e8e788
parent7482fff297727bb5faf64cc92c73561ccf48feda
The current documentation says it returns None if the name is not found, but (GH-26785) (GH-27372)

the implementation uses [] and will raise KeyError instead.

Noticed by @srittau in python/typeshed@5659.
(cherry picked from commit f22737abfa07605f4ed1a99cfa97a26520b6c5c2)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/sysconfig.rst
Misc/NEWS.d/next/Documentation/2021-06-18-06-44-45.bpo-44453.3PIkj2.rst [new file with mode: 0644]