The following code crashes the interpreter by reading into freed memory.
✦ ❯ ./python main.py
MyTask.__del__
fish: Job 2, './python main.py' terminated by signal SIGSEGV (Address boundary error)
Supporting subclasses seems tricky with it, I propose to use fast implementation only with exact types.
Crash report
The following code crashes the interpreter by reading into freed memory.
Output:
Supporting subclasses seems tricky with it, I propose to use fast implementation only with exact types.
Linked PRs