From: Tian Gao Date: Wed, 2 Apr 2025 23:50:01 +0000 (-0400) Subject: gh-60115: Support frozen modules for linecache.getline() (#131638) X-Git-Tag: v3.14.0a7~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bd96894269be4754a811fb8ea1e3b627a676562;p=thirdparty%2FPython%2Fcpython.git gh-60115: Support frozen modules for linecache.getline() (#131638) --- diff --git a/Doc/library/linecache.rst b/Doc/library/linecache.rst index 88c6079a05b7..e766a9280946 100644 --- a/Doc/library/linecache.rst +++ b/Doc/library/linecache.rst @@ -30,6 +30,10 @@ The :mod:`linecache` module defines the following functions: .. index:: triple: module; search; path + If *filename* indicates a frozen module (starting with ``'') + and not filename.startswith('')): + if _source_unavailable(filename): return [] - fullname = filename + if filename.startswith('