[Python-Dev] A little GC confusion
Martin v. Loewis
martin@v.loewis.de
23 Feb 2002 01:43:55 +0100
23 Feb 2002 01:43:55 +0100
- Previous message: [Python-Dev] A little GC confusion
- Next message: [Python-Dev] A little GC confusion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"David Abrahams" <david.abrahams@rcn.com> writes: > static int > type_is_gc(PyTypeObject *type) > { > return type->tp_flags & Py_TPFLAGS_HEAPTYPE; > } > > so, wouldn't it make more sense that the Python source always checks > Py_TPFLAGS_HEAPTYPE before tp_is_gc? No. Most GC objects do not have the HEAPTYPE flag (they actually aren't even type objects). Regards, Martin
- Previous message: [Python-Dev] A little GC confusion
- Next message: [Python-Dev] A little GC confusion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]