Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

tasklet, channel: use tp_finalize instead of tp_dealloc for complex finalisation code #192

@akruis

Description

@akruis

The C-API documentation states: Starting with Python 3.4, it is recommended not to put any complex finalization code in tp_dealloc, and instead use the new tp_finalize type method.

Actually we have complicated finalisation code in the tp_dealloc functions of tasklet and channel.
Task: move the finalisation logic to the tp_finalize slot.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions