diff options
author | Fred Drake <fdrake@acm.org> | 2001-08-15 18:32:33 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-08-15 18:32:33 (GMT) |
commit | d55657bdf237fbe33c897fc0aa40a6de22845825 (patch) | |
tree | c423ee8c88aa4bbc0a7e40e4ee239a33a2d56c86 /Include/object.h | |
parent | 88dcf03068929a8f7de023dfd9cb131cc5fbad78 (diff) | |
download | cpython-d55657bdf237fbe33c897fc0aa40a6de22845825.zip cpython-d55657bdf237fbe33c897fc0aa40a6de22845825.tar.gz cpython-d55657bdf237fbe33c897fc0aa40a6de22845825.tar.bz2 |
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.
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 18bc34f..8da524b 100644 --- a/Include/object.h +++ b/Include/object.h @@ -150,6 +150,7 @@ typedef struct { 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 @@ typedef struct { 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 @@ typedef struct { 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 @@ typedef struct _typeobject { 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; |