Skip to content

C API: Add a replacement for PySys_GetObject #108512

Description

@serhiy-storchaka

Feature or enhancement

Proposal:

The PySys_GetObject() function has two flaws:

  • It clears any error raised inside the function, including important and critical errors.
  • It returns a borrowed reference.

We need to add a replacement free from these flaws. Any ideas about the API and the name?

Links to previous discussion of this feature:

Linked PRs

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions