summaryrefslogtreecommitdiffstats
path: root/Modules/_operator.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-04-29 15:29:07 (GMT)
committerGitHub <noreply@github.com>2024-04-29 15:29:07 (GMT)
commit44f57a952ea1c25699f19c6cf1fa47cd300e33aa (patch)
treef08dbe1ea42d1c003462f09dfcfd20407bc897e0 /Modules/_operator.c
parent23d0371bb99b1df183c36883e256f82fdf6a4bea (diff)
downloadcpython-44f57a952ea1c25699f19c6cf1fa47cd300e33aa.zip
cpython-44f57a952ea1c25699f19c6cf1fa47cd300e33aa.tar.gz
cpython-44f57a952ea1c25699f19c6cf1fa47cd300e33aa.tar.bz2
gh-117953: Split Up _PyImport_LoadDynamicModuleWithSpec() (gh-118203)
Basically, I've turned most of _PyImport_LoadDynamicModuleWithSpec() into two new functions (_PyImport_GetModInitFunc() and _PyImport_RunModInitFunc()) and moved the rest of it out into _imp_create_dynamic_impl(). There shouldn't be any changes in behavior. This change makes some future changes simpler. This is particularly relevant to potentially calling each module init function in the main interpreter first. Thus the critical part of the PR is the addition of _PyImport_RunModInitFunc(), which is strictly focused on running the init func and validating the result. A later PR will take it a step farther by capturing error information rather than raising exceptions. FWIW, this change also helps readers by clarifying a bit more about what happens when an extension/builtin module is imported.
Diffstat (limited to 'Modules/_operator.c')
0 files changed, 0 insertions, 0 deletions