@@ -170,10 +170,6 @@ Object Protocol
170170 of the value of that attribute with *cls * will be used to determine the result
171171 of this function.
172172
173- .. versionadded :: 2.1
174-
175- .. versionchanged :: 2.2
176- Support for a tuple as the second argument added.
177173
178174Subclass determination is done in a fairly straightforward way, but includes a
179175wrinkle that implementors of extensions to the class system may want to be aware
@@ -196,11 +192,6 @@ is considered sufficient for this determination.
196192 ``0 ``. If either *derived * or *cls * is not an actual class object (or tuple),
197193 this function uses the generic algorithm described above.
198194
199- .. versionadded :: 2.1
200-
201- .. versionchanged :: 2.3
202- Older versions of Python did not support a tuple as the second argument.
203-
204195
205196.. cfunction :: int PyCallable_Check(PyObject *o)
206197
@@ -217,8 +208,6 @@ is considered sufficient for this determination.
217208 success, or *NULL * on failure. This is the equivalent of the Python expression
218209 ``callable_object(*args, **kw) ``.
219210
220- .. versionadded :: 2.2
221-
222211
223212.. cfunction :: PyObject* PyObject_CallObject(PyObject *callable_object, PyObject *args)
224213
@@ -257,8 +246,6 @@ is considered sufficient for this determination.
257246 of parameters followed by *NULL *. Returns the result of the call on success, or
258247 *NULL * on failure.
259248
260- .. versionadded :: 2.2
261-
262249
263250.. cfunction :: PyObject* PyObject_CallMethodObjArgs(PyObject *o, PyObject *name, ..., NULL)
264251
@@ -268,8 +255,6 @@ is considered sufficient for this determination.
268255 of parameters followed by *NULL *. Returns the result of the call on success, or
269256 *NULL * on failure.
270257
271- .. versionadded :: 2.2
272-
273258
274259.. cfunction :: long PyObject_Hash(PyObject *o)
275260
@@ -311,8 +296,6 @@ is considered sufficient for this determination.
311296 Return true if the object *o * is of type *type * or a subtype of *type *. Both
312297 parameters must be non-*NULL *.
313298
314- .. versionadded :: 2.2
315-
316299
317300.. cfunction :: Py_ssize_t PyObject_Length(PyObject *o)
318301 Py_ssize_t PyObject_Size(PyObject *o)
@@ -408,8 +391,6 @@ Number Protocol
408391 Return the floor of *o1 * divided by *o2 *, or *NULL * on failure. This is
409392 equivalent to the "classic" division of integers.
410393
411- .. versionadded :: 2.2
412-
413394
414395.. cfunction :: PyObject* PyNumber_TrueDivide(PyObject *o1, PyObject *o2)
415396
@@ -419,8 +400,6 @@ Number Protocol
419400 numbers in base two. This function can return a floating point value when
420401 passed two integers.
421402
422- .. versionadded :: 2.2
423-
424403
425404.. cfunction :: PyObject* PyNumber_Remainder(PyObject *o1, PyObject *o2)
426405
@@ -536,8 +515,6 @@ Number Protocol
536515 The operation is done *in-place * when *o1 * supports it. This is the equivalent
537516 of the Python statement ``o1 //= o2 ``.
538517
539- .. versionadded :: 2.2
540-
541518
542519.. cfunction :: PyObject* PyNumber_InPlaceTrueDivide(PyObject *o1, PyObject *o2)
543520
@@ -547,8 +524,6 @@ Number Protocol
547524 numbers in base two. This function can return a floating point value when
548525 passed two integers. The operation is done *in-place * when *o1 * supports it.
549526
550- .. versionadded :: 2.2
551-
552527
553528.. cfunction :: PyObject* PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2)
554529
@@ -633,8 +608,6 @@ Number Protocol
633608 Returns the *o * converted to a Python int or long on success or *NULL * with a
634609 TypeError exception raised on failure.
635610
636- .. versionadded :: 2.5
637-
638611
639612.. cfunction :: Py_ssize_t PyNumber_AsSsize_t(PyObject *o, PyObject *exc)
640613
@@ -646,16 +619,12 @@ Number Protocol
646619 exception is cleared and the value is clipped to *PY_SSIZE_T_MIN * for a negative
647620 integer or *PY_SSIZE_T_MAX * for a positive integer.
648621
649- .. versionadded :: 2.5
650-
651622
652623.. cfunction :: int PyIndex_Check(PyObject *o)
653624
654625 Returns True if *o * is an index integer (has the nb_index slot of the
655626 tp_as_number structure filled in).
656627
657- .. versionadded :: 2.5
658-
659628
660629.. _sequence :
661630
@@ -801,8 +770,6 @@ Sequence Protocol
801770 Return the underlying array of PyObject pointers. Assumes that *o * was returned
802771 by :cfunc: `PySequence_Fast ` and *o * is not *NULL *.
803772
804- .. versionadded :: 2.4
805-
806773
807774.. cfunction :: PyObject* PySequence_ITEM(PyObject *o, Py_ssize_t i)
808775
@@ -811,8 +778,6 @@ Sequence Protocol
811778 :cfunc: `PySequence_Check(o) ` is true and without adjustment for negative
812779 indices.
813780
814- .. versionadded :: 2.3
815-
816781
817782.. cfunction :: Py_ssize_t PySequence_Fast_GET_SIZE(PyObject *o)
818783
@@ -906,11 +871,8 @@ Mapping Protocol
906871Iterator Protocol
907872=================
908873
909- .. versionadded :: 2.2
910-
911874There are only a couple of functions specifically for working with iterators.
912875
913-
914876.. cfunction :: int PyIter_Check(PyObject *o)
915877
916878 Return true if the object *o * supports the iterator protocol.
@@ -965,8 +927,6 @@ Buffer Protocol
965927 *buffer_len * to the buffer length. Returns ``-1 `` and sets a :exc: `TypeError `
966928 on error.
967929
968- .. versionadded :: 1.6
969-
970930
971931.. cfunction :: int PyObject_AsReadBuffer(PyObject *obj, const void **buffer, Py_ssize_t *buffer_len)
972932
@@ -975,16 +935,12 @@ Buffer Protocol
975935 success, returns ``0 ``, sets *buffer * to the memory location and *buffer_len * to
976936 the buffer length. Returns ``-1 `` and sets a :exc: `TypeError ` on error.
977937
978- .. versionadded :: 1.6
979-
980938
981939.. cfunction :: int PyObject_CheckReadBuffer(PyObject *o)
982940
983941 Returns ``1 `` if *o * supports the single-segment readable buffer interface.
984942 Otherwise returns ``0 ``.
985943
986- .. versionadded :: 2.2
987-
988944
989945.. cfunction :: int PyObject_AsWriteBuffer(PyObject *obj, void **buffer, Py_ssize_t *buffer_len)
990946
@@ -993,5 +949,3 @@ Buffer Protocol
993949 ``0 ``, sets *buffer * to the memory location and *buffer_len * to the buffer
994950 length. Returns ``-1 `` and sets a :exc: `TypeError ` on error.
995951
996- .. versionadded :: 1.6
997-
0 commit comments