File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ The :mod:`linecache` module defines the following functions:
3030
3131 .. index :: triple: module; search; path
3232
33+ If *filename * indicates a frozen module (starting with ``<frozen ``), the function
34+ will attepmt to get the real file name from ``module_globals['__file__'] `` if
35+ *module_globals * is not ``None ``.
36+
3337 If a file named *filename * is not found, the function first checks
3438 for a :pep: `302 ` ``__loader__ `` in *module_globals *.
3539 If there is such a loader and it defines a ``get_source `` method,
@@ -38,6 +42,10 @@ The :mod:`linecache` module defines the following functions:
3842 Finally, if *filename * is a relative filename,
3943 it is looked up relative to the entries in the module search path, ``sys.path ``.
4044
45+ .. versionchanged :: 3.14
46+
47+ Support *filename * of frozen modules.
48+
4149
4250.. function :: clearcache()
4351
You can’t perform that action at this time.
0 commit comments