PyHeapTypeObject

B

Brendan Miller

What's the point of PyHeapTypeObject in Include/object.h? Why does the
layout of object types need to be different on the heap vs statically
allocated?

Thanks,
Brendan
 
A

Aaron Brady

What's the point of PyHeapTypeObject in Include/object.h? Why does the
layout of object types need to be different on the heap vs statically
allocated?

Thanks,
Brendan

Does it need to be garbage collected, finalized, and deallocated?
E.g. the string in tp_name.

I understand that the 'tp_dict' member is always dynamic though anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,293
Messages
2,571,501
Members
48,189
Latest member
StaciLgf76

Latest Threads

Top