diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2021-07-26 16:18:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 16:18:19 (GMT) |
commit | f22737abfa07605f4ed1a99cfa97a26520b6c5c2 (patch) | |
tree | d8d0c12f220e85831d1bf9334f76d1531692b312 /Misc | |
parent | c97c2a050cf753003012ae3f08e035326b8f6167 (diff) | |
download | cpython-f22737abfa07605f4ed1a99cfa97a26520b6c5c2.zip cpython-f22737abfa07605f4ed1a99cfa97a26520b6c5c2.tar.gz cpython-f22737abfa07605f4ed1a99cfa97a26520b6c5c2.tar.bz2 |
The current documentation says it returns None if the name is not found, but (GH-26785)
the implementation uses [] and will raise KeyError instead.
Noticed by @srittau in python/typeshed@5659.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Documentation/2021-06-18-06-44-45.bpo-44453.3PIkj2.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Documentation/2021-06-18-06-44-45.bpo-44453.3PIkj2.rst b/Misc/NEWS.d/next/Documentation/2021-06-18-06-44-45.bpo-44453.3PIkj2.rst new file mode 100644 index 0000000..fd72cf5 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2021-06-18-06-44-45.bpo-44453.3PIkj2.rst @@ -0,0 +1 @@ +Fix documentation for the return type of :func:`sysconfig.get_path`. |