summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-06-17 01:36:52 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-06-17 01:36:52 (GMT)
commitdf1cf301c2da740f9271b3ff164d7f0e5cb9082c (patch)
tree7336b800dfff0f8cff9b5bbba63b8c2bfce154a1 /Misc
parenta3e3e36de751607cd2d7f1eaa6ae93cf123c3c8a (diff)
downloadcpython-df1cf301c2da740f9271b3ff164d7f0e5cb9082c.zip
cpython-df1cf301c2da740f9271b3ff164d7f0e5cb9082c.tar.gz
cpython-df1cf301c2da740f9271b3ff164d7f0e5cb9082c.tar.bz2
#8720: fix inspect regression by teaching getsourcefile about linecache.
The fix for issue 4050 caused a regression: before that fix, source lines in the linecache would eventually be found by inspect. After the fix inspect reports an error earlier, and the source isn't found. The fix for the fix is to have getsourcefile look in the linecache for the file and return the psuedo-filename if the source is there, just as it already returns it if there is a PEP 302 loader.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 152725a..21bbc3d 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -26,6 +26,9 @@ Core and Builtins
Library
-------
+- Issue #8720: fix regression caused by fix for #4050 by making getsourcefile
+ smart enough to find source files in the linecache.
+
- Issue #8986: math.erfc was incorrectly raising OverflowError for
values between -27.3 and -30.0 on some platforms.