summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-02 15:22:40 (GMT)
committerGitHub <noreply@github.com>2023-10-02 15:22:40 (GMT)
commit5e6e99646e46d485e018429f6000661609e4f1b5 (patch)
treedb68548fffc53b7c3fe4440e723560912238a5af /Python/ast.c
parent6a6bea3ee8bbe52e4307c4da1ed4a7b9c78cbe45 (diff)
downloadcpython-5e6e99646e46d485e018429f6000661609e4f1b5.zip
cpython-5e6e99646e46d485e018429f6000661609e4f1b5.tar.gz
cpython-5e6e99646e46d485e018429f6000661609e4f1b5.tar.bz2
[3.12] gh-109521: Fix obscure cases handling in PyImport_GetImporter() (GH-109522) (#109777)
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 62c7015e89cbdedb5218d4fedd45f971885f67a8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions