After discussing some more with Georg, do no migrate versionchanged:: 2.5 to

this branch. While I am here, also get rid of other versionchanged:: 2.x
constructs, as discussed.
parent 7b6ca4ab
...@@ -11,10 +11,6 @@ Allocating Objects on the Heap ...@@ -11,10 +11,6 @@ Allocating Objects on the Heap
.. cfunction:: PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size) .. cfunction:: PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size)
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *size*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyObject_Init(PyObject *op, PyTypeObject *type) .. cfunction:: PyObject* PyObject_Init(PyObject *op, PyTypeObject *type)
...@@ -30,10 +26,6 @@ Allocating Objects on the Heap ...@@ -30,10 +26,6 @@ Allocating Objects on the Heap
This does everything :cfunc:`PyObject_Init` does, and also initializes the This does everything :cfunc:`PyObject_Init` does, and also initializes the
length information for a variable-size object. length information for a variable-size object.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *size*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: TYPE* PyObject_New(TYPE, PyTypeObject *type) .. cfunction:: TYPE* PyObject_New(TYPE, PyTypeObject *type)
...@@ -55,10 +47,6 @@ Allocating Objects on the Heap ...@@ -55,10 +47,6 @@ Allocating Objects on the Heap
fields into the same allocation decreases the number of allocations, fields into the same allocation decreases the number of allocations,
improving the memory management efficiency. improving the memory management efficiency.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *size*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: void PyObject_Del(PyObject *op) .. cfunction:: void PyObject_Del(PyObject *op)
......
...@@ -406,10 +406,6 @@ and the following format units are left untouched. ...@@ -406,10 +406,6 @@ and the following format units are left untouched.
PyArg_ParseTuple(args, "O|O:ref", &object, &callback) PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *min* and *max*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* Py_BuildValue(const char *format, ...) .. cfunction:: PyObject* Py_BuildValue(const char *format, ...)
......
...@@ -140,10 +140,6 @@ Dictionary Objects ...@@ -140,10 +140,6 @@ Dictionary Objects
Return the number of items in the dictionary. This is equivalent to Return the number of items in the dictionary. This is equivalent to
``len(p)`` on a dictionary. ``len(p)`` on a dictionary.
.. versionchanged:: 2.5
This function returned an :ctype:`int` type. This might require changes
in your code for properly supporting 64-bit systems.
.. cfunction:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) .. cfunction:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue)
...@@ -190,10 +186,6 @@ Dictionary Objects ...@@ -190,10 +186,6 @@ Dictionary Objects
Py_DECREF(o); Py_DECREF(o);
} }
.. versionchanged:: 2.5
This function used an :ctype:`int *` type for *ppos*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyDict_Merge(PyObject *a, PyObject *b, int override) .. cfunction:: int PyDict_Merge(PyObject *a, PyObject *b, int override)
......
...@@ -45,20 +45,12 @@ Constructors for container types must conform to two rules: ...@@ -45,20 +45,12 @@ Constructors for container types must conform to two rules:
Analogous to :cfunc:`PyObject_NewVar` but for container objects with the Analogous to :cfunc:`PyObject_NewVar` but for container objects with the
:const:`Py_TPFLAGS_HAVE_GC` flag set. :const:`Py_TPFLAGS_HAVE_GC` flag set.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *size*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: TYPE* PyObject_GC_Resize(TYPE, PyVarObject *op, Py_ssize_t newsize) .. cfunction:: TYPE* PyObject_GC_Resize(TYPE, PyVarObject *op, Py_ssize_t newsize)
Resize an object allocated by :cfunc:`PyObject_NewVar`. Returns the Resize an object allocated by :cfunc:`PyObject_NewVar`. Returns the
resized object or *NULL* on failure. resized object or *NULL* on failure.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *newsize*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: void PyObject_GC_Track(PyObject *op) .. cfunction:: void PyObject_GC_Track(PyObject *op)
......
...@@ -45,10 +45,6 @@ List Objects ...@@ -45,10 +45,6 @@ List Objects
:cfunc:`PySequence_SetItem` or expose the object to Python code before :cfunc:`PySequence_SetItem` or expose the object to Python code before
setting all items to a real object with :cfunc:`PyList_SetItem`. setting all items to a real object with :cfunc:`PyList_SetItem`.
.. versionchanged:: 2.5
This function used an :ctype:`int` for *size*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: Py_ssize_t PyList_Size(PyObject *list) .. cfunction:: Py_ssize_t PyList_Size(PyObject *list)
...@@ -57,19 +53,11 @@ List Objects ...@@ -57,19 +53,11 @@ List Objects
Return the length of the list object in *list*; this is equivalent to Return the length of the list object in *list*; this is equivalent to
``len(list)`` on a list object. ``len(list)`` on a list object.
.. versionchanged:: 2.5
This function returned an :ctype:`int`. This might require changes in
your code for properly supporting 64-bit systems.
.. cfunction:: Py_ssize_t PyList_GET_SIZE(PyObject *list) .. cfunction:: Py_ssize_t PyList_GET_SIZE(PyObject *list)
Macro form of :cfunc:`PyList_Size` without error checking. Macro form of :cfunc:`PyList_Size` without error checking.
.. versionchanged:: 2.5
This macro returned an :ctype:`int`. This might require changes in your
code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index) .. cfunction:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index)
...@@ -78,19 +66,11 @@ List Objects ...@@ -78,19 +66,11 @@ List Objects
supported. If *pos* is out of bounds, return *NULL* and set an supported. If *pos* is out of bounds, return *NULL* and set an
:exc:`IndexError` exception. :exc:`IndexError` exception.
.. versionchanged:: 2.5
This function used an :ctype:`int` for *index*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyList_GET_ITEM(PyObject *list, Py_ssize_t i) .. cfunction:: PyObject* PyList_GET_ITEM(PyObject *list, Py_ssize_t i)
Macro form of :cfunc:`PyList_GetItem` without error checking. Macro form of :cfunc:`PyList_GetItem` without error checking.
.. versionchanged:: 2.5
This macro used an :ctype:`int` for *i*. This might require changes in
your code for properly supporting 64-bit systems.
.. cfunction:: int PyList_SetItem(PyObject *list, Py_ssize_t index, PyObject *item) .. cfunction:: int PyList_SetItem(PyObject *list, Py_ssize_t index, PyObject *item)
...@@ -102,10 +82,6 @@ List Objects ...@@ -102,10 +82,6 @@ List Objects
This function "steals" a reference to *item* and discards a reference to This function "steals" a reference to *item* and discards a reference to
an item already in the list at the affected position. an item already in the list at the affected position.
.. versionchanged:: 2.5
This function used an :ctype:`int` for *index*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: void PyList_SET_ITEM(PyObject *list, Py_ssize_t i, PyObject *o) .. cfunction:: void PyList_SET_ITEM(PyObject *list, Py_ssize_t i, PyObject *o)
...@@ -119,10 +95,6 @@ List Objects ...@@ -119,10 +95,6 @@ List Objects
is being replaced; any reference in *list* at position *i* will be is being replaced; any reference in *list* at position *i* will be
leaked. leaked.
.. versionchanged:: 2.5
This macro used an :ctype:`int` for *i*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyList_Insert(PyObject *list, Py_ssize_t index, PyObject *item) .. cfunction:: int PyList_Insert(PyObject *list, Py_ssize_t index, PyObject *item)
...@@ -130,10 +102,6 @@ List Objects ...@@ -130,10 +102,6 @@ List Objects
``0`` if successful; return ``-1`` and set an exception if unsuccessful. ``0`` if successful; return ``-1`` and set an exception if unsuccessful.
Analogous to ``list.insert(index, item)``. Analogous to ``list.insert(index, item)``.
.. versionchanged:: 2.5
This function used an :ctype:`int` for *index*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyList_Append(PyObject *list, PyObject *item) .. cfunction:: int PyList_Append(PyObject *list, PyObject *item)
...@@ -148,10 +116,6 @@ List Objects ...@@ -148,10 +116,6 @@ List Objects
*low* and *high*. Return *NULL* and set an exception if unsuccessful. *low* and *high*. Return *NULL* and set an exception if unsuccessful.
Analogous to ``list[low:high]``. Analogous to ``list[low:high]``.
.. versionchanged:: 2.5
This function used an :ctype:`int` for *low* and *high*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyList_SetSlice(PyObject *list, Py_ssize_t low, Py_ssize_t high, PyObject *itemlist) .. cfunction:: int PyList_SetSlice(PyObject *list, Py_ssize_t low, Py_ssize_t high, PyObject *itemlist)
...@@ -160,10 +124,6 @@ List Objects ...@@ -160,10 +124,6 @@ List Objects
be *NULL*, indicating the assignment of an empty list (slice deletion). be *NULL*, indicating the assignment of an empty list (slice deletion).
Return ``0`` on success, ``-1`` on failure. Return ``0`` on success, ``-1`` on failure.
.. versionchanged:: 2.5
This function used an :ctype:`int` for *low* and *high*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyList_Sort(PyObject *list) .. cfunction:: int PyList_Sort(PyObject *list)
......
...@@ -100,10 +100,6 @@ All integers are implemented as "long" integer objects of arbitrary size. ...@@ -100,10 +100,6 @@ All integers are implemented as "long" integer objects of arbitrary size.
string is first encoded to a byte string using :cfunc:`PyUnicode_EncodeDecimal` string is first encoded to a byte string using :cfunc:`PyUnicode_EncodeDecimal`
and then converted using :cfunc:`PyLong_FromString`. and then converted using :cfunc:`PyLong_FromString`.
.. versionchanged:: 2.5
This function used an :ctype:`int` for *length*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyLong_FromVoidPtr(void *p) .. cfunction:: PyObject* PyLong_FromVoidPtr(void *p)
......
...@@ -21,10 +21,6 @@ Mapping Protocol ...@@ -21,10 +21,6 @@ Mapping Protocol
objects that do not provide mapping protocol, this is equivalent to the Python objects that do not provide mapping protocol, this is equivalent to the Python
expression ``len(o)``. expression ``len(o)``.
.. versionchanged:: 2.5
These functions returned an :ctype:`int` type. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyMapping_DelItemString(PyObject *o, char *key) .. cfunction:: int PyMapping_DelItemString(PyObject *o, char *key)
......
...@@ -87,6 +87,3 @@ written using these routines? ...@@ -87,6 +87,3 @@ written using these routines?
appropriate exception (:exc:`EOFError` or :exc:`TypeError`) and returns appropriate exception (:exc:`EOFError` or :exc:`TypeError`) and returns
*NULL*. *NULL*.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *len*. This might require
changes in your code for properly supporting 64-bit systems.
...@@ -14,10 +14,6 @@ Buffer Protocol ...@@ -14,10 +14,6 @@ Buffer Protocol
and *buffer_len* to the buffer length. Returns ``-1`` and sets a and *buffer_len* to the buffer length. Returns ``-1`` and sets a
:exc:`TypeError` on error. :exc:`TypeError` on error.
.. versionchanged:: 2.5
This function used an :ctype:`int *` type for *buffer_len*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyObject_AsReadBuffer(PyObject *obj, const void **buffer, Py_ssize_t *buffer_len) .. cfunction:: int PyObject_AsReadBuffer(PyObject *obj, const void **buffer, Py_ssize_t *buffer_len)
...@@ -27,10 +23,6 @@ Buffer Protocol ...@@ -27,10 +23,6 @@ Buffer Protocol
and *buffer_len* to the buffer length. Returns ``-1`` and sets a and *buffer_len* to the buffer length. Returns ``-1`` and sets a
:exc:`TypeError` on error. :exc:`TypeError` on error.
.. versionchanged:: 2.5
This function used an :ctype:`int *` type for *buffer_len*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyObject_CheckReadBuffer(PyObject *o) .. cfunction:: int PyObject_CheckReadBuffer(PyObject *o)
...@@ -45,7 +37,3 @@ Buffer Protocol ...@@ -45,7 +37,3 @@ Buffer Protocol
returns ``0``, sets *buffer* to the memory location and *buffer_len* to the returns ``0``, sets *buffer* to the memory location and *buffer_len* to the
buffer length. Returns ``-1`` and sets a :exc:`TypeError` on error. buffer length. Returns ``-1`` and sets a :exc:`TypeError` on error.
.. versionchanged:: 2.5
This function used an :ctype:`int *` type for *buffer_len*. This might
require changes in your code for properly supporting 64-bit systems.
...@@ -304,10 +304,6 @@ is considered sufficient for this determination. ...@@ -304,10 +304,6 @@ is considered sufficient for this determination.
and mapping protocols, the sequence length is returned. On error, ``-1`` is and mapping protocols, the sequence length is returned. On error, ``-1`` is
returned. This is the equivalent to the Python expression ``len(o)``. returned. This is the equivalent to the Python expression ``len(o)``.
.. versionchanged:: 2.5
These functions returned an :ctype:`int` type. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyObject_GetItem(PyObject *o, PyObject *key) .. cfunction:: PyObject* PyObject_GetItem(PyObject *o, PyObject *key)
......
...@@ -21,10 +21,6 @@ Sequence Protocol ...@@ -21,10 +21,6 @@ Sequence Protocol
For objects that do not provide sequence protocol, this is equivalent to the For objects that do not provide sequence protocol, this is equivalent to the
Python expression ``len(o)``. Python expression ``len(o)``.
.. versionchanged:: 2.5
These functions returned an :ctype:`int` type. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PySequence_Concat(PyObject *o1, PyObject *o2) .. cfunction:: PyObject* PySequence_Concat(PyObject *o1, PyObject *o2)
...@@ -37,10 +33,6 @@ Sequence Protocol ...@@ -37,10 +33,6 @@ Sequence Protocol
Return the result of repeating sequence object *o* *count* times, or *NULL* on Return the result of repeating sequence object *o* *count* times, or *NULL* on
failure. This is the equivalent of the Python expression ``o * count``. failure. This is the equivalent of the Python expression ``o * count``.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *count*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PySequence_InPlaceConcat(PyObject *o1, PyObject *o2) .. cfunction:: PyObject* PySequence_InPlaceConcat(PyObject *o1, PyObject *o2)
...@@ -55,30 +47,18 @@ Sequence Protocol ...@@ -55,30 +47,18 @@ Sequence Protocol
failure. The operation is done *in-place* when *o* supports it. This is the failure. The operation is done *in-place* when *o* supports it. This is the
equivalent of the Python expression ``o *= count``. equivalent of the Python expression ``o *= count``.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *count*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PySequence_GetItem(PyObject *o, Py_ssize_t i) .. cfunction:: PyObject* PySequence_GetItem(PyObject *o, Py_ssize_t i)
Return the *i*th element of *o*, or *NULL* on failure. This is the equivalent of Return the *i*th element of *o*, or *NULL* on failure. This is the equivalent of
the Python expression ``o[i]``. the Python expression ``o[i]``.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *i*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PySequence_GetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2) .. cfunction:: PyObject* PySequence_GetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2)
Return the slice of sequence object *o* between *i1* and *i2*, or *NULL* on Return the slice of sequence object *o* between *i1* and *i2*, or *NULL* on
failure. This is the equivalent of the Python expression ``o[i1:i2]``. failure. This is the equivalent of the Python expression ``o[i1:i2]``.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *i1* and *i2*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PySequence_SetItem(PyObject *o, Py_ssize_t i, PyObject *v) .. cfunction:: int PySequence_SetItem(PyObject *o, Py_ssize_t i, PyObject *v)
...@@ -86,40 +66,24 @@ Sequence Protocol ...@@ -86,40 +66,24 @@ Sequence Protocol
is the equivalent of the Python statement ``o[i] = v``. This function *does is the equivalent of the Python statement ``o[i] = v``. This function *does
not* steal a reference to *v*. not* steal a reference to *v*.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *i*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PySequence_DelItem(PyObject *o, Py_ssize_t i) .. cfunction:: int PySequence_DelItem(PyObject *o, Py_ssize_t i)
Delete the *i*th element of object *o*. Returns ``-1`` on failure. This is the Delete the *i*th element of object *o*. Returns ``-1`` on failure. This is the
equivalent of the Python statement ``del o[i]``. equivalent of the Python statement ``del o[i]``.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *i*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PySequence_SetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2, PyObject *v) .. cfunction:: int PySequence_SetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2, PyObject *v)
Assign the sequence object *v* to the slice in sequence object *o* from *i1* to Assign the sequence object *v* to the slice in sequence object *o* from *i1* to
*i2*. This is the equivalent of the Python statement ``o[i1:i2] = v``. *i2*. This is the equivalent of the Python statement ``o[i1:i2] = v``.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *i1* and *i2*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PySequence_DelSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2) .. cfunction:: int PySequence_DelSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2)
Delete the slice in sequence object *o* from *i1* to *i2*. Returns ``-1`` on Delete the slice in sequence object *o* from *i1* to *i2*. Returns ``-1`` on
failure. This is the equivalent of the Python statement ``del o[i1:i2]``. failure. This is the equivalent of the Python statement ``del o[i1:i2]``.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *i1* and *i2*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: Py_ssize_t PySequence_Count(PyObject *o, PyObject *value) .. cfunction:: Py_ssize_t PySequence_Count(PyObject *o, PyObject *value)
...@@ -127,10 +91,6 @@ Sequence Protocol ...@@ -127,10 +91,6 @@ Sequence Protocol
of keys for which ``o[key] == value``. On failure, return ``-1``. This is of keys for which ``o[key] == value``. On failure, return ``-1``. This is
equivalent to the Python expression ``o.count(value)``. equivalent to the Python expression ``o.count(value)``.
.. versionchanged:: 2.5
This function returned an :ctype:`int` type. This might require changes
in your code for properly supporting 64-bit systems.
.. cfunction:: int PySequence_Contains(PyObject *o, PyObject *value) .. cfunction:: int PySequence_Contains(PyObject *o, PyObject *value)
...@@ -144,10 +104,6 @@ Sequence Protocol ...@@ -144,10 +104,6 @@ Sequence Protocol
Return the first index *i* for which ``o[i] == value``. On error, return Return the first index *i* for which ``o[i] == value``. On error, return
``-1``. This is equivalent to the Python expression ``o.index(value)``. ``-1``. This is equivalent to the Python expression ``o.index(value)``.
.. versionchanged:: 2.5
This function returned an :ctype:`int` type. This might require changes
in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PySequence_List(PyObject *o) .. cfunction:: PyObject* PySequence_List(PyObject *o)
...@@ -178,10 +134,6 @@ Sequence Protocol ...@@ -178,10 +134,6 @@ Sequence Protocol
Return the *i*th element of *o*, assuming that *o* was returned by Return the *i*th element of *o*, assuming that *o* was returned by
:cfunc:`PySequence_Fast`, *o* is not *NULL*, and that *i* is within bounds. :cfunc:`PySequence_Fast`, *o* is not *NULL*, and that *i* is within bounds.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *i*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject** PySequence_Fast_ITEMS(PyObject *o) .. cfunction:: PyObject** PySequence_Fast_ITEMS(PyObject *o)
...@@ -200,10 +152,6 @@ Sequence Protocol ...@@ -200,10 +152,6 @@ Sequence Protocol
:cfunc:`PySequence_Check(o)` is true and without adjustment for negative :cfunc:`PySequence_Check(o)` is true and without adjustment for negative
indices. indices.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *i*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: Py_ssize_t PySequence_Fast_GET_SIZE(PyObject *o) .. cfunction:: Py_ssize_t PySequence_Fast_GET_SIZE(PyObject *o)
......
...@@ -106,10 +106,6 @@ or :class:`frozenset` or instances of their subtypes. ...@@ -106,10 +106,6 @@ or :class:`frozenset` or instances of their subtypes.
``len(anyset)``. Raises a :exc:`PyExc_SystemError` if *anyset* is not a ``len(anyset)``. Raises a :exc:`PyExc_SystemError` if *anyset* is not a
:class:`set`, :class:`frozenset`, or an instance of a subtype. :class:`set`, :class:`frozenset`, or an instance of a subtype.
.. versionchanged:: 2.5
This function returned an :ctype:`int`. This might require changes in
your code for properly supporting 64-bit systems.
.. cfunction:: Py_ssize_t PySet_GET_SIZE(PyObject *anyset) .. cfunction:: Py_ssize_t PySet_GET_SIZE(PyObject *anyset)
......
...@@ -40,11 +40,6 @@ Slice Objects ...@@ -40,11 +40,6 @@ Slice Objects
You probably do not want to use this function. You probably do not want to use this function.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *length* and an
:ctype:`int *` type for *start*, *stop*, and *step*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PySlice_GetIndicesEx(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength) .. cfunction:: int PySlice_GetIndicesEx(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength)
...@@ -56,8 +51,3 @@ Slice Objects ...@@ -56,8 +51,3 @@ Slice Objects
Returns 0 on success and -1 on error with exception set. Returns 0 on success and -1 on error with exception set.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *length* and an
:ctype:`int *` type for *start*, *stop*, *step*, and *slicelength*. This
might require changes in your code for properly supporting 64-bit
systems.
...@@ -37,10 +37,6 @@ Tuple Objects ...@@ -37,10 +37,6 @@ Tuple Objects
Return a new tuple object of size *len*, or *NULL* on failure. Return a new tuple object of size *len*, or *NULL* on failure.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *len*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyTuple_Pack(Py_ssize_t n, ...) .. cfunction:: PyObject* PyTuple_Pack(Py_ssize_t n, ...)
...@@ -48,58 +44,34 @@ Tuple Objects ...@@ -48,58 +44,34 @@ Tuple Objects
are initialized to the subsequent *n* C arguments pointing to Python objects. are initialized to the subsequent *n* C arguments pointing to Python objects.
``PyTuple_Pack(2, a, b)`` is equivalent to ``Py_BuildValue("(OO)", a, b)``. ``PyTuple_Pack(2, a, b)`` is equivalent to ``Py_BuildValue("(OO)", a, b)``.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *n*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: Py_ssize_t PyTuple_Size(PyObject *p) .. cfunction:: Py_ssize_t PyTuple_Size(PyObject *p)
Take a pointer to a tuple object, and return the size of that tuple. Take a pointer to a tuple object, and return the size of that tuple.
.. versionchanged:: 2.5
This function returned an :ctype:`int` type. This might require changes
in your code for properly supporting 64-bit systems.
.. cfunction:: Py_ssize_t PyTuple_GET_SIZE(PyObject *p) .. cfunction:: Py_ssize_t PyTuple_GET_SIZE(PyObject *p)
Return the size of the tuple *p*, which must be non-*NULL* and point to a tuple; Return the size of the tuple *p*, which must be non-*NULL* and point to a tuple;
no error checking is performed. no error checking is performed.
.. versionchanged:: 2.5
This function returned an :ctype:`int` type. This might require changes
in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyTuple_GetItem(PyObject *p, Py_ssize_t pos) .. cfunction:: PyObject* PyTuple_GetItem(PyObject *p, Py_ssize_t pos)
Return the object at position *pos* in the tuple pointed to by *p*. If *pos* is Return the object at position *pos* in the tuple pointed to by *p*. If *pos* is
out of bounds, return *NULL* and sets an :exc:`IndexError` exception. out of bounds, return *NULL* and sets an :exc:`IndexError` exception.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *pos*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyTuple_GET_ITEM(PyObject *p, Py_ssize_t pos) .. cfunction:: PyObject* PyTuple_GET_ITEM(PyObject *p, Py_ssize_t pos)
Like :cfunc:`PyTuple_GetItem`, but does no checking of its arguments. Like :cfunc:`PyTuple_GetItem`, but does no checking of its arguments.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *pos*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyTuple_GetSlice(PyObject *p, Py_ssize_t low, Py_ssize_t high) .. cfunction:: PyObject* PyTuple_GetSlice(PyObject *p, Py_ssize_t low, Py_ssize_t high)
Take a slice of the tuple pointed to by *p* from *low* to *high* and return it Take a slice of the tuple pointed to by *p* from *low* to *high* and return it
as a new tuple. as a new tuple.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *low* and *high*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyTuple_SetItem(PyObject *p, Py_ssize_t pos, PyObject *o) .. cfunction:: int PyTuple_SetItem(PyObject *p, Py_ssize_t pos, PyObject *o)
...@@ -110,10 +82,6 @@ Tuple Objects ...@@ -110,10 +82,6 @@ Tuple Objects
This function "steals" a reference to *o*. This function "steals" a reference to *o*.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *pos*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: void PyTuple_SET_ITEM(PyObject *p, Py_ssize_t pos, PyObject *o) .. cfunction:: void PyTuple_SET_ITEM(PyObject *p, Py_ssize_t pos, PyObject *o)
...@@ -124,10 +92,6 @@ Tuple Objects ...@@ -124,10 +92,6 @@ Tuple Objects
This function "steals" a reference to *o*. This function "steals" a reference to *o*.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *pos*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: int _PyTuple_Resize(PyObject **p, Py_ssize_t newsize) .. cfunction:: int _PyTuple_Resize(PyObject **p, Py_ssize_t newsize)
...@@ -142,10 +106,6 @@ Tuple Objects ...@@ -142,10 +106,6 @@ Tuple Objects
``*p`` is destroyed. On failure, returns ``-1`` and sets ``*p`` to *NULL*, and ``*p`` is destroyed. On failure, returns ``-1`` and sets ``*p`` to *NULL*, and
raises :exc:`MemoryError` or :exc:`SystemError`. raises :exc:`MemoryError` or :exc:`SystemError`.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *newsize*. This might
require changes in your code for properly supporting 64-bit systems.
.. cfunction:: int PyTuple_ClearFreeList(void) .. cfunction:: int PyTuple_ClearFreeList(void)
......
...@@ -66,10 +66,6 @@ Type Objects ...@@ -66,10 +66,6 @@ Type Objects
XXX: Document. XXX: Document.
.. versionchanged:: 2.5
This function used an :ctype:`int` type for *nitems*. This might require
changes in your code for properly supporting 64-bit systems.
.. cfunction:: PyObject* PyType_GenericNew(PyTypeObject *type, PyObject *args, PyObject *kwds) .. cfunction:: PyObject* PyType_GenericNew(PyTypeObject *type, PyObject *args, PyObject *kwds)
......
...@@ -64,10 +64,6 @@ type objects) *must* have the :attr:`ob_size` field. ...@@ -64,10 +64,6 @@ type objects) *must* have the :attr:`ob_size` field.
This field is not inherited by subtypes. This field is not inherited by subtypes.
.. versionchanged:: 2.5
This field used to be an :ctype:`int` type. This might require changes
in your code for properly supporting 64-bit systems.
.. cmember:: PyTypeObject* PyObject.ob_type .. cmember:: PyTypeObject* PyObject.ob_type
......
This diff is collapsed.
...@@ -454,9 +454,6 @@ way. From the PyXML setup script:: ...@@ -454,9 +454,6 @@ way. From the PyXML setup script::
scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val'] scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val']
) )
.. versionchanged:: 2.7
All the scripts will also be added to the ``MANIFEST``
file if no template is provided. See :ref:`manifest`.
.. _distutils-installing-package-data: .. _distutils-installing-package-data:
...@@ -501,11 +498,6 @@ The corresponding call to :func:`setup` might be:: ...@@ -501,11 +498,6 @@ The corresponding call to :func:`setup` might be::
) )
.. versionchanged:: 2.7
All the files that match ``package_data`` will be added to the ``MANIFEST``
file if no template is provided. See :ref:`manifest`.
.. _distutils-additional-files: .. _distutils-additional-files:
Installing Additional Files Installing Additional Files
...@@ -542,11 +534,6 @@ without specifying a target directory, but this is not recommended, and the ...@@ -542,11 +534,6 @@ without specifying a target directory, but this is not recommended, and the
files directly in the target directory, an empty string should be given as the files directly in the target directory, an empty string should be given as the
directory. directory.
.. versionchanged:: 2.7
All the files that match ``data_files`` will be added to the ``MANIFEST``
file if no template is provided. See :ref:`manifest`.
.. _meta-data: .. _meta-data:
......
...@@ -605,7 +605,7 @@ form. ...@@ -605,7 +605,7 @@ form.
>>> re.split("(?m)^$", "foo\n\nbar\n") >>> re.split("(?m)^$", "foo\n\nbar\n")
['foo\n\nbar\n'] ['foo\n\nbar\n']
.. versionchanged:: 2.7,3.1 .. versionchanged:: 3.1
Added the optional flags argument. Added the optional flags argument.
...@@ -675,7 +675,7 @@ form. ...@@ -675,7 +675,7 @@ form.
character ``'0'``. The backreference ``\g<0>`` substitutes in the entire character ``'0'``. The backreference ``\g<0>`` substitutes in the entire
substring matched by the RE. substring matched by the RE.
.. versionchanged:: 2.7,3.1 .. versionchanged:: 3.1
Added the optional flags argument. Added the optional flags argument.
...@@ -684,7 +684,7 @@ form. ...@@ -684,7 +684,7 @@ form.
Perform the same operation as :func:`sub`, but return a tuple ``(new_string, Perform the same operation as :func:`sub`, but return a tuple ``(new_string,
number_of_subs_made)``. number_of_subs_made)``.
.. versionchanged:: 2.7,3.1 .. versionchanged:: 3.1
Added the optional flags argument. Added the optional flags argument.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment