[Python-Dev] another Py_TPFLAGS_HEAPTYPE question (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon Aug 17 03:39:36 CEST 2009
- Previous message: [Python-Dev] another Py_TPFLAGS_HEAPTYPE question
- Next message: [Python-Dev] another Py_TPFLAGS_HEAPTYPE question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Benjamin Peterson wrote:
Why do you need to set PyTPFLAGSHEAPTYPE on your C type?
I think he doesn't want to set Py_TPFLAGS_HEAPTYPE, but does want to create the type dynamically.
But I suspect this is actually FUD, and that letting Py_TPFLAGS_HEAPTYPE be set wouldn't lead to anything disastrous happening.
Note that by not giving instances a dict, they will be prevented from having arbitrary attributes set on them, which is the most noticeable distinction between built-in and user-defined types.
-- Greg
- Previous message: [Python-Dev] another Py_TPFLAGS_HEAPTYPE question
- Next message: [Python-Dev] another Py_TPFLAGS_HEAPTYPE question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]