summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-07-30 17:46:42 (GMT)
committerGitHub <noreply@github.com>2021-07-30 17:46:42 (GMT)
commitf468ede4a2b7ab5c72ae85ab04cb56904300cd23 (patch)
treeaac90287c84307d96c2f8319901b1dfb589748fd /Misc/NEWS.d
parent440c9f772a9b66c1ea387c1c3efc9ff438880acf (diff)
downloadcpython-f468ede4a2b7ab5c72ae85ab04cb56904300cd23.zip
cpython-f468ede4a2b7ab5c72ae85ab04cb56904300cd23.tar.gz
cpython-f468ede4a2b7ab5c72ae85ab04cb56904300cd23.tar.bz2
bpo-44648: Fix error type in inspect.getsource() in interactive session (GH-27171) (GH-27495)
(cherry picked from commit 48a62559dfaf775e4f1cc56b19379c799e8e2587) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2021-07-15-16-51-32.bpo-44648.2o49TB.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-07-15-16-51-32.bpo-44648.2o49TB.rst b/Misc/NEWS.d/next/Library/2021-07-15-16-51-32.bpo-44648.2o49TB.rst
new file mode 100644
index 0000000..f7171c3
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-07-15-16-51-32.bpo-44648.2o49TB.rst
@@ -0,0 +1,3 @@
+Fixed wrong error being thrown by :func:`inspect.getsource` when examining a
+class in the interactive session. Instead of :exc:`TypeError`, it should be
+:exc:`OSError` with appropriate error message.