SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

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.
S
Serhiy Storchaka committed
62c7015e89cbdedb5218d4fedd45f971885f67a8
Parent: b8d1744
Committed by GitHub <noreply@github.com> on 9/23/2023, 6:39:24 AM