A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-February/020250.html below:

[Python-Dev] A little GC confusion

[Python-Dev] A little GC confusion [Python-Dev] A little GC confusionMartin v. Loewis martin@v.loewis.de
22 Feb 2002 11:25:09 +0100
"Jason Orendorff" <jason@jorendorff.com> writes:

> I think David is asking about line 1404 of Objects/typeobject.c,
> where it says that PyType_Type is Py_TPFLAGS_HAVE_GC.
> How can it have GC when many instances are static objects, not
> allocated with PyObject_GC_VarNew()?

Because the type type implements tp_is_gc (typeobject.c:1378),
declaring static type objects as not being gc. In turn, garbage
collection will not attempt to look at the GC header of these 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