8000 Avoid decref in PyObject_RichCompareBool · Issue #136017 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Avoid decref in PyObject_RichCompareBool #136017
Closed
@eendebakpt

Description

@eendebakpt

Feature or enhancement

Proposal:

In PyObject_RichCompareBool there is a fast path for the common case where PyObject_RichCompare returns a bool. In that path there is no need to decref the result, since bool values are immortal.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0