Changeset 391 for python/trunk/Doc/c-api/slice.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/c-api/slice.rst
r2 r391 7 7 8 8 9 .. c var:: PyTypeObject PySlice_Type9 .. c:var:: PyTypeObject PySlice_Type 10 10 11 11 .. index:: single: SliceType (in module types) … … 15 15 16 16 17 .. c function:: int PySlice_Check(PyObject *ob)17 .. c:function:: int PySlice_Check(PyObject *ob) 18 18 19 19 Return true if *ob* is a slice object; *ob* must not be *NULL*. 20 20 21 21 22 .. c function:: PyObject* PySlice_New(PyObject *start, PyObject *stop, PyObject *step)22 .. c:function:: PyObject* PySlice_New(PyObject *start, PyObject *stop, PyObject *step) 23 23 24 24 Return a new slice object with the given values. The *start*, *stop*, and … … 29 29 30 30 31 .. c function:: int PySlice_GetIndices(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step)31 .. c:function:: int PySlice_GetIndices(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step) 32 32 33 33 Retrieve the start, stop and step indices from the slice object *slice*, … … 41 41 You probably do not want to use this function. If you want to use slice 42 42 objects in versions of Python prior to 2.3, you would probably do well to 43 incorporate the source of :c func:`PySlice_GetIndicesEx`, suitably renamed,43 incorporate the source of :c:func:`PySlice_GetIndicesEx`, suitably renamed, 44 44 in the source of your extension. 45 45 46 46 .. versionchanged:: 2.5 47 This function used an :c type:`int` type for *length* and an48 :c type:`int *` type for *start*, *stop*, and *step*. This might require47 This function used an :c:type:`int` type for *length* and an 48 :c:type:`int *` type for *start*, *stop*, and *step*. This might require 49 49 changes in your code for properly supporting 64-bit systems. 50 50 51 51 52 .. c function:: 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)52 .. c:function:: 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) 53 53 54 Usable replacement for :c func:`PySlice_GetIndices`. Retrieve the start,54 Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, 55 55 stop, and step indices from the slice object *slice* assuming a sequence of 56 56 length *length*, and store the length of the slice in *slicelength*. Out … … 63 63 64 64 .. versionchanged:: 2.5 65 This function used an :c type:`int` type for *length* and an66 :c type:`int *` type for *start*, *stop*, *step*, and *slicelength*. This65 This function used an :c:type:`int` type for *length* and an 66 :c:type:`int *` type for *start*, *stop*, *step*, and *slicelength*. This 67 67 might require changes in your code for properly supporting 64-bit 68 68 systems.
Note:
See TracChangeset
for help on using the changeset viewer.