mirror of
https://github.com/python/cpython.git
synced 2025-08-13 05:19:08 +00:00
![]() gh-109521: Fix obscure cases handling in PyImport_GetImporter() (GH-109522)
PyImport_GetImporter() now sets RuntimeError if it fails to get sys.path_hooks
or sys.path_importer_cache or they are not list and dict correspondingly.
Previously it could return NULL without setting error in obscure cases,
crash or raise SystemError if these attributes have wrong type.
(cherry picked from commit
|
||
---|---|---|
.. | ||
clinic | ||
deepfreeze | ||
frozen_modules | ||
_warnings.c | ||
adaptive.md | ||
asdl.c | ||
asm_trampoline.S | ||
assemble.c | ||
ast.c | ||
ast_opt.c | ||
ast_unparse.c | ||
bltinmodule.c | ||
bootstrap_hash.c | ||
bytecodes.c | ||
ceval.c | ||
ceval_gil.c | ||
ceval_macros.h | ||
codecs.c | ||
compile.c | ||
condvar.h | ||
context.c | ||
dtoa.c | ||
dup2.c | ||
dynamic_annotations.c | ||
dynload_hpux.c | ||
dynload_shlib.c | ||
dynload_stub.c | ||
dynload_win.c | ||
emscripten_signal.c | ||
errors.c | ||
fileutils.c | ||
flowgraph.c | ||
formatter_unicode.c | ||
frame.c | ||
frozen.c | ||
frozenmain.c | ||
future.c | ||
generated_cases.c.h | ||
getargs.c | ||
getcompiler.c | ||
getcopyright.c | ||
getopt.c | ||
getplatform.c | ||
getversion.c | ||
hamt.c | ||
hashtable.c | ||
import.c | ||
importdl.c | ||
importdl.h | ||
initconfig.c | ||
instrumentation.c | ||
intrinsics.c | ||
legacy_tracing.c | ||
makeopcodetargets.py | ||
marshal.c | ||
modsupport.c | ||
mysnprintf.c | ||
mystrtoul.c | ||
opcode_metadata.h | ||
opcode_targets.h | ||
pathconfig.c | ||
perf_trampoline.c | ||
preconfig.c | ||
pyarena.c | ||
pyctype.c | ||
pyfpe.c | ||
pyhash.c | ||
pylifecycle.c | ||
pymath.c | ||
pystate.c | ||
pystrcmp.c | ||
pystrhex.c | ||
pystrtod.c | ||
Python-ast.c | ||
Python-tokenize.c | ||
pythonrun.c | ||
pytime.c | ||
README | ||
specialize.c | ||
stdlib_module_names.h | ||
structmember.c | ||
suggestions.c | ||
symtable.c | ||
sysmodule.c | ||
thread.c | ||
thread_nt.h | ||
thread_pthread.h | ||
thread_pthread_stubs.h | ||
traceback.c | ||
tracemalloc.c |
Miscellaneous source files for the main Python shared library