cpython/Python
Eric Snow 08285d563e
bpo-45020: Identify which frozen modules are actually aliases. (gh-28655)
In the list of generated frozen modules at the top of Tools/scripts/freeze_modules.py, you will find that some of the modules have a different name than the module (or .py file) that is actually frozen. Let's call each case an "alias". Aliases do not come into play until we get to the (generated) list of modules in Python/frozen.c. (The tool for freezing modules, Programs/_freeze_module, is only concerned with the source file, not the module it will be used for.)

Knowledge of which frozen modules are aliases (and the identity of the original module) normally isn't important. However, this information is valuable when we go to set __file__ on frozen stdlib modules. This change updates Tools/scripts/freeze_modules.py to map aliases to the original module name (or None if not a stdlib module) in Python/frozen.c. We also add a helper function in Python/import.c to look up a frozen module's alias and add the result of that function to the frozen info returned from find_frozen().

https://bugs.python.org/issue45020
2021-10-05 11:26:37 -06:00
..
clinic bpo-45020: Identify which frozen modules are actually aliases. (gh-28655) 2021-10-05 11:26:37 -06:00
frozen_modules bpo-45020: Drop the frozen .h files from the repo. (gh-28392) 2021-09-16 14:20:52 -06:00
_warnings.c bpo-44590: Lazily allocate frame objects (GH-27077) 2021-07-26 11:22:16 +01:00
adaptive.md bpo-44854: Remove trailing whitespaces (GH-27689) 2021-08-09 21:32:54 +03:00
asdl.c
ast.c bpo-43897: Reject "_" captures and top-level MatchStar in the AST validator (GH-27432) 2021-07-28 17:24:18 -07:00
ast_opt.c bpo-28307: Tests and fixes for optimization of C-style formatting (GH-26318) 2021-05-23 19:06:48 +03:00
ast_unparse.c
bltinmodule.c Remove trailing spaces. (GH-28706) 2021-10-03 16:58:14 +03:00
bootstrap_hash.c bpo-44611: Use BCryptGenRandom instead of CryptGenRandom on Windows (GH-27168) 2021-07-23 23:04:30 +09:00
ceval.c bpo-43760: Check for tracing using 'bitwise or' instead of branch in dispatch. (GH-28723) 2021-10-05 11:01:11 +01:00
ceval_gil.h
codecs.c
compile.c bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720) 2021-10-04 14:11:26 +03:00
condvar.h bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378) 2021-07-27 00:11:55 +02:00
context.c Clean up initialization __class_getitem__ with Py_GenericAlias. (GH-28450) 2021-09-19 18:05:30 +03:00
dtoa.c
dup2.c
dynamic_annotations.c
dynload_hpux.c bpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX (GH-27857) 2021-09-08 14:43:00 +02:00
dynload_shlib.c bpo-43895: Remove an unnecessary cache of shared object handles (GH-25487) 2021-07-07 16:26:06 -07:00
dynload_stub.c
dynload_win.c
errors.c bpo-41031: Match C and Python code formatting of unprintable exceptions and exceptions in the __main__ module. (GH-28139) 2021-09-05 18:54:13 +03:00
fileutils.c Do not check isabs() on Windows. (gh-28584) 2021-09-27 10:52:19 -06:00
formatter_unicode.c bpo-20524: adds better error message for .format() (GH-28310) 2021-09-24 11:18:04 -04:00
frame.c bpo-44990: Change layout of evaluation frames. "Layout B" (GH-27933) 2021-08-25 13:44:20 +01:00
frozen.c bpo-45020: Identify which frozen modules are actually aliases. (gh-28655) 2021-10-05 11:26:37 -06:00
frozenmain.c bpo-44131: Py_FrozenMain() uses PyConfig_SetBytesArgv() (GH-26201) 2021-05-20 12:08:05 +02:00
future.c
getargs.c bpo-20291: Fix MSVC warnings in getargs.c (GH-27211) 2021-07-17 14:09:18 +03:00
getcompiler.c
getcopyright.c
getopt.c
getplatform.c
getversion.c
hamt.c
hashtable.c
import.c bpo-45020: Identify which frozen modules are actually aliases. (gh-28655) 2021-10-05 11:26:37 -06:00
importdl.c
importdl.h
initconfig.c bpo-45211: Remember the stdlib dir during startup. (gh-28586) 2021-09-28 12:18:28 -06:00
makeopcodetargets.py bpo-43760: Check for tracing using 'bitwise or' instead of branch in dispatch. (GH-28723) 2021-10-05 11:01:11 +01:00
marshal.c bpo-45094: Add Py_NO_INLINE macro (GH-28140) 2021-09-03 16:44:02 +02:00
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h bpo-43760: Check for tracing using 'bitwise or' instead of branch in dispatch. (GH-28723) 2021-10-05 11:01:11 +01:00
pathconfig.c bpo-45211: Remember the stdlib dir during startup. (gh-28586) 2021-09-28 12:18:28 -06:00
preconfig.c bpo-45211: Move helpers from getpath.c to internal API. (gh-28550) 2021-09-27 10:00:32 -06:00
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c bpo-45061: Detect refcount bug on empty tuple singleton (GH-28503) 2021-09-21 23:04:34 +02:00
pymath.c
pystate.c bpo-44990: Change layout of evaluation frames. "Layout B" (GH-27933) 2021-08-25 13:44:20 +01:00
pystrcmp.c
pystrhex.c
pystrtod.c
Python-ast.c bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) 2021-06-03 21:01:02 +01:00
Python-tokenize.c Remove trailing spaces. (GH-28706) 2021-10-03 16:58:14 +03:00
pythonrun.c bpo-41031: Match C and Python code formatting of unprintable exceptions and exceptions in the __main__ module. (GH-28139) 2021-09-05 18:54:13 +03:00
pytime.c bpo-41710: Add private _PyDeadline_Get() function (GH-28674) 2021-10-01 13:29:25 +02:00
README
specialize.c bpo-45219: Factor dictkey indexing (GH-28389) 2021-09-17 12:20:51 +01:00
stdlib_module_names.h bpo-45085: Remove the binhex module (GH-28117) 2021-09-02 12:10:08 +02:00
structmember.c bpo-44655: Include the name of the type in unset __slots__ attribute errors (GH-27199) 2021-07-17 00:34:46 +01:00
suggestions.c bpo-44590: Lazily allocate frame objects (GH-27077) 2021-07-26 11:22:16 +01:00
symtable.c bpo-33346: Allow async comprehensions inside implicit async comprehensions (GH-6766) 2021-07-13 22:27:50 +01:00
sysmodule.c bpo-43760: Check for tracing using 'bitwise or' instead of branch in dispatch. (GH-28723) 2021-10-05 11:01:11 +01:00
thread.c bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065) 2021-08-06 13:11:12 +02:00
thread_nt.h bpo-41710: Add private _PyDeadline_Get() function (GH-28674) 2021-10-01 13:29:25 +02:00
thread_pthread.h bpo-41710: Add private _PyDeadline_Get() function (GH-28674) 2021-10-01 13:29:25 +02:00
traceback.c bpo-45355: Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the code unit (GH-28711) 2021-10-03 21:22:42 +03:00
wordcode_helpers.h

Miscellaneous source files for the main Python shared library