`ga_getitem` can fail if `Py_GenericAlias` returns `NULL` · Issue #121660 · python/cpython · GitHub
Skip to content

ga_getitem can fail if Py_GenericAlias returns NULL #121660

Description

@sobolevn

Bug report

This code is problematic:

Why? Py_GenericAlias can return NULL in different cases:

So, we need to check for NULL.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions