Skip to content

C API: Add a replacement for PySys_GetObject #108512

Closed
@serhiy-storchaka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions