This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients BreamoreBoy, benjamin.peterson, christian.heimes, serhiy.storchaka, terry.reedy, vstinner
Date 2014-10-05.21:52:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412545920.96.0.774185723143.issue18372@psf.upfronthosting.co.za>
In-reply-to
Content
From Doc/c-api/gcsupport.rst:

> Constructors for container types must conform to two rules:
> 
> #. The memory for the object must be allocated using :c:func:`PyObject_GC_New`
>    or :c:func:`PyObject_GC_NewVar`.
> 
> #. Once all the fields which may contain references to other containers are
> 
>    initialized, it must call :c:func:`PyObject_GC_Track`.

_pickle.Pickler and _pickle.Unpickler have the Py_TPFLAGS_HAVE_GC flag, implement tp_traverse and tp_clear, but PyObject_GC_Track is newer called.
History
Date User Action Args
2014-10-05 21:52:01serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, vstinner, christian.heimes, benjamin.peterson, BreamoreBoy
2014-10-05 21:52:00serhiy.storchakasetmessageid: <1412545920.96.0.774185723143.issue18372@psf.upfronthosting.co.za>
2014-10-05 21:52:00serhiy.storchakalinkissue18372 messages
2014-10-05 21:52:00serhiy.storchakacreate