[Python-bugs-list] [ python-Bugs-580462 ] GC Changes not mentioned in What's New

noreply@sourceforge.net noreply@sourceforge.net
Fri, 12 Jul 2002 01:01:28 -0700


Bugs item #580462, was opened at 2002-07-12 10:01
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=580462&group_id=5470

Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 6
Submitted By: Martin v. Löwis (loewis)
Assigned to: A.M. Kuchling (akuchling)
Summary: GC Changes not mentioned in What's New

Initial Comment:
At EuroPython,  Paul Dubois was surprised about the
changes to the GC API, which were documented as

- The GC API has been changed.  Extensions that use the
old API will still
  compile but will not participate in GC.  To upgrade
an extension
  module:

    - rename Py_TPFLAGS_GC to PyTPFLAGS_HAVE_GC

    - use PyObject_GC_New or PyObject_GC_NewVar to
allocate objects and
      PyObject_GC_Del to deallocate them

    - rename PyObject_GC_Init to PyObject_GC_Track and
PyObject_GC_Fini
      to PyObject_GC_UnTrack

    - remove PyGC_HEAD_SIZE from object size calculations

    - remove calls to PyObject_AS_GC and PyObject_FROM_GC

Thjs should somehow be mentioned in What's New as well.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=580462&group_id=5470