You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Repository navigation
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
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.
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.