"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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4