# HG changeset patch # User Fred Drake # Date 997900353 0 # Node ID b865cd5c1925036daeab3d8b2adfc3b6a35e50c6 # Parent 6f6acbf7893943f834b5c423c9e39081b20f7917 Added comments before recently added/assigned slots in the type object, so the backward compatibility issues will be easier to understand. I only added comments indicating additions and assignments back to Python 2.0. diff -r 6f6acbf78939 -r b865cd5c1925 Include/object.h --- a/Include/object.h Wed Aug 15 18:18:58 2001 +0000 +++ b/Include/object.h Wed Aug 15 18:32:33 2001 +0000 @@ -150,6 +150,7 @@ unaryfunc nb_float; unaryfunc nb_oct; unaryfunc nb_hex; + /* Added in release 2.0 */ binaryfunc nb_inplace_add; binaryfunc nb_inplace_subtract; binaryfunc nb_inplace_multiply; @@ -162,6 +163,7 @@ binaryfunc nb_inplace_xor; binaryfunc nb_inplace_or; + /* Added in release 2.2 */ /* The following require the Py_TPFLAGS_HAVE_CLASS flag */ binaryfunc nb_floor_divide; binaryfunc nb_true_divide; @@ -178,6 +180,7 @@ intobjargproc sq_ass_item; intintobjargproc sq_ass_slice; objobjproc sq_contains; + /* Added in release 2.0 */ binaryfunc sq_inplace_concat; intargfunc sq_inplace_repeat; } PySequenceMethods; @@ -250,18 +253,21 @@ char *tp_doc; /* Documentation string */ + /* Assigned meaning in release 2.0 */ /* call function for all accessible objects */ traverseproc tp_traverse; /* delete references to contained objects */ inquiry tp_clear; + /* Assigned meaning in release 2.1 */ /* rich comparisons */ richcmpfunc tp_richcompare; /* weak reference enabler */ long tp_weaklistoffset; + /* Added in release 2.2 */ /* Iterators */ getiterfunc tp_iter; iternextfunc tp_iternext;