jevinskie[m] has quit [Quit: Bridge terminating on SIGTERM]
<Hodgestar>
Wat. :|
jboi has quit [Quit: Bridge terminating on SIGTERM]
jboi has joined #hpy
jevinskie[m] has joined #hpy
<antocuni>
I am confused by PyObject_New. The CPython docs say:
<antocuni>
Allocate a new Python object using the C structure type TYPE and the Python type object type. [...]
<antocuni>
but looking at the source code, it seems to completely bypasses the tp_* slots. Apart from ignoring tp_new and tp_init, it seems to bypass also tp_alloc
<antocuni>
so, what happens if you define a custom tp_alloc/tp_free and create an object using PyObject_New? Will it just crash when calling free?
<antocuni>
and, if I am right: what are the reasonable use cases to call it?