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 zseil
Recipients
Date 2006-06-05.19:15:06
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Slice's members start, stop and step can
be arbitrary python objects, which means
that slices can be easily included in
reference cycles (see the test in the
patch).
The patch includes the necessary changes
to enable support for the gc. Since slices
are immutable, there should be no need for
a tp_clear method.
I also changed the slice_dealloc function
to use Py_CLEAR macros instead of Py_DECREF.

I noticed that PySlice_GetIndices is still
missing support for types with a __index__
method. I don't know if that is intentional
or not.
History
Date User Action Args
2007-08-23 15:52:39adminlinkissue1501180 messages
2007-08-23 15:52:39admincreate