]> 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:33 +0000 (12:35 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Jul 2021 19:35:33 +0000 (21:35 +0200)
commit5151826ee453eb6b8d32336e289573c421e956a4
tree75e657a901d2401b76422b251e5f8986bc3a54ee
parent563e05743c8f31366db7ef35a00e396c9f442b17
The current documentation says it returns None if the name is not found, but (GH-26785) (GH-27371)

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]