diff options
author | Georg Brandl <georg@python.org> | 2007-09-01 12:33:24 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-01 12:33:24 (GMT) |
commit | 321976b6e74db8f649e47f2b791c4bcc2a71d127 (patch) | |
tree | f3553ef3dd5133f7a285bdd392a85d49c773749d /Doc/c-api/abstract.rst | |
parent | 2326a79de134281b12b3ed04eeabcc8c403df57d (diff) | |
download | cpython-321976b6e74db8f649e47f2b791c4bcc2a71d127.zip cpython-321976b6e74db8f649e47f2b791c4bcc2a71d127.tar.gz cpython-321976b6e74db8f649e47f2b791c4bcc2a71d127.tar.bz2 |
Remove versionadded and versionchanged directives, fold information into text where necessary.
Diffstat (limited to 'Doc/c-api/abstract.rst')
-rw-r--r-- | Doc/c-api/abstract.rst | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/Doc/c-api/abstract.rst b/Doc/c-api/abstract.rst index 1a1ff13..7b5de86 100644 --- a/Doc/c-api/abstract.rst +++ b/Doc/c-api/abstract.rst @@ -170,10 +170,6 @@ Object Protocol of the value of that attribute with *cls* will be used to determine the result of this function. - .. versionadded:: 2.1 - - .. versionchanged:: 2.2 - Support for a tuple as the second argument added. Subclass determination is done in a fairly straightforward way, but includes a wrinkle that implementors of extensions to the class system may want to be aware @@ -196,11 +192,6 @@ is considered sufficient for this determination. ``0``. If either *derived* or *cls* is not an actual class object (or tuple), this function uses the generic algorithm described above. - .. versionadded:: 2.1 - - .. versionchanged:: 2.3 - Older versions of Python did not support a tuple as the second argument. - .. cfunction:: int PyCallable_Check(PyObject *o) @@ -217,8 +208,6 @@ is considered sufficient for this determination. success, or *NULL* on failure. This is the equivalent of the Python expression ``callable_object(*args, **kw)``. - .. versionadded:: 2.2 - .. cfunction:: PyObject* PyObject_CallObject(PyObject *callable_object, PyObject *args) @@ -257,8 +246,6 @@ is considered sufficient for this determination. of parameters followed by *NULL*. Returns the result of the call on success, or *NULL* on failure. - .. versionadded:: 2.2 - .. cfunction:: PyObject* PyObject_CallMethodObjArgs(PyObject *o, PyObject *name, ..., NULL) @@ -268,8 +255,6 @@ is considered sufficient for this determination. of parameters followed by *NULL*. Returns the result of the call on success, or *NULL* on failure. - .. versionadded:: 2.2 - .. cfunction:: long PyObject_Hash(PyObject *o) @@ -311,8 +296,6 @@ is considered sufficient for this determination. Return true if the object *o* is of type *type* or a subtype of *type*. Both parameters must be non-*NULL*. - .. versionadded:: 2.2 - .. cfunction:: Py_ssize_t PyObject_Length(PyObject *o) Py_ssize_t PyObject_Size(PyObject *o) @@ -408,8 +391,6 @@ Number Protocol Return the floor of *o1* divided by *o2*, or *NULL* on failure. This is equivalent to the "classic" division of integers. - .. versionadded:: 2.2 - .. cfunction:: PyObject* PyNumber_TrueDivide(PyObject *o1, PyObject *o2) @@ -419,8 +400,6 @@ Number Protocol numbers in base two. This function can return a floating point value when passed two integers. - .. versionadded:: 2.2 - .. cfunction:: PyObject* PyNumber_Remainder(PyObject *o1, PyObject *o2) @@ -536,8 +515,6 @@ Number Protocol The operation is done *in-place* when *o1* supports it. This is the equivalent of the Python statement ``o1 //= o2``. - .. versionadded:: 2.2 - .. cfunction:: PyObject* PyNumber_InPlaceTrueDivide(PyObject *o1, PyObject *o2) @@ -547,8 +524,6 @@ Number Protocol numbers in base two. This function can return a floating point value when passed two integers. The operation is done *in-place* when *o1* supports it. - .. versionadded:: 2.2 - .. cfunction:: PyObject* PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2) @@ -633,8 +608,6 @@ Number Protocol Returns the *o* converted to a Python int or long on success or *NULL* with a TypeError exception raised on failure. - .. versionadded:: 2.5 - .. cfunction:: Py_ssize_t PyNumber_AsSsize_t(PyObject *o, PyObject *exc) @@ -646,16 +619,12 @@ Number Protocol exception is cleared and the value is clipped to *PY_SSIZE_T_MIN* for a negative integer or *PY_SSIZE_T_MAX* for a positive integer. - .. versionadded:: 2.5 - .. cfunction:: int PyIndex_Check(PyObject *o) Returns True if *o* is an index integer (has the nb_index slot of the tp_as_number structure filled in). - .. versionadded:: 2.5 - .. _sequence: @@ -801,8 +770,6 @@ Sequence Protocol Return the underlying array of PyObject pointers. Assumes that *o* was returned by :cfunc:`PySequence_Fast` and *o* is not *NULL*. - .. versionadded:: 2.4 - .. cfunction:: PyObject* PySequence_ITEM(PyObject *o, Py_ssize_t i) @@ -811,8 +778,6 @@ Sequence Protocol :cfunc:`PySequence_Check(o)` is true and without adjustment for negative indices. - .. versionadded:: 2.3 - .. cfunction:: Py_ssize_t PySequence_Fast_GET_SIZE(PyObject *o) @@ -906,11 +871,8 @@ Mapping Protocol Iterator Protocol ================= -.. versionadded:: 2.2 - There are only a couple of functions specifically for working with iterators. - .. cfunction:: int PyIter_Check(PyObject *o) Return true if the object *o* supports the iterator protocol. @@ -965,8 +927,6 @@ Buffer Protocol *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:`TypeError` on error. - .. versionadded:: 1.6 - .. cfunction:: int PyObject_AsReadBuffer(PyObject *obj, const void **buffer, Py_ssize_t *buffer_len) @@ -975,16 +935,12 @@ Buffer Protocol success, returns ``0``, sets *buffer* to the memory location and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:`TypeError` on error. - .. versionadded:: 1.6 - .. cfunction:: int PyObject_CheckReadBuffer(PyObject *o) Returns ``1`` if *o* supports the single-segment readable buffer interface. Otherwise returns ``0``. - .. versionadded:: 2.2 - .. cfunction:: int PyObject_AsWriteBuffer(PyObject *obj, void **buffer, Py_ssize_t *buffer_len) @@ -993,5 +949,3 @@ Buffer Protocol ``0``, sets *buffer* to the memory location and *buffer_len* to the buffer length. Returns ``-1`` and sets a :exc:`TypeError` on error. - .. versionadded:: 1.6 - |