<phlebas> since we had this discussion about creating heap types with custom metatypes, and it looks like the functionality will be in 3.12, nanobind has code to emulate the behaviour on older Python versions: https://github.com/wjakob/nanobind/blob/be84fffcc50ff5e941551bb56b929568e56b2a91/src/nb_type.cpp#L378
<phlebas> I think it would be ok for hpy to use this same hack so that our numpy hpy port can run on Python 3.8+
<antocuni> it looks "reasonable"
<antocuni> for some definition of reasonable :)
<arigato> no idea why they are calling PyGC_Collect() though
<antocuni> indeed, it seems not necessary, and they are not calling it in the other code paths
<arigato> (I bet it's something like the copy of the type that dies contains cycles, and they added a "__del__():print" to check it was correctly released, and they found out the print would only work with PyGC_Collect())
<Hodgestar> It's a debugging PyGC_Collect. :)
<Hodgestar> phlebas: I think it's reasonable to use in order to make progress now. Maybe just stick it in a separate file so that deleting it is easy later.
<antocuni> it seems that the PyGC_Collect has been removed from master: https://github.com/wjakob/nanobind/blob/master/src/nb_type.cpp#L434
dalley has quit [Quit: Leaving]