<ronan>
antocuni: note that I was confused yesterday, it happens in all modes
* antocuni
looks
<ronan>
the reason is obvious: we unconditionally clobber tp_dealloc with hpytype_dealloc
<antocuni>
yes, I imagined something like that but I didn't remember the code by heart
<antocuni>
I wonder whether the proper fix is to disallow the legacy tp_dealloc if we have HPyFields
* antocuni
looks at top4000 packages
<ronan>
that would make a gradual port of something like numpy harder
<antocuni>
what do they do in tp_dealloc that can't be done in e.g. hpy_tp_destroy?
<antocuni>
ah, I answer myself. E.g. you need it if you want to mix PyObject* and HPyField
<ronan>
yes
<antocuni>
it's not obvious how to fix it though, especially on CPython. We need to install our own tp_dealloc which also calls the legacy one, but how to we know which function to call?