Skip to content

Deprecate (and eventually remove) tp_is_gc #132403

Open
@markshannon

Description

@markshannon

Feature or enhancement

Proposal:

The existence of tp_is_gc slows down and complicates allocation, deallocation and garbage collection.

But there is no need for it, as statically allocated objects can be marked as immortal as will be ignored by the GC.
I doubt there is much third-party code that uses it, if any.

We should deprecate it, and then remove it.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions