Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/c-api/slice.rst

    r2 r391  
    77
    88
    9 .. cvar:: PyTypeObject PySlice_Type
     9.. c:var:: PyTypeObject PySlice_Type
    1010
    1111   .. index:: single: SliceType (in module types)
     
    1515
    1616
    17 .. cfunction:: int PySlice_Check(PyObject *ob)
     17.. c:function:: int PySlice_Check(PyObject *ob)
    1818
    1919   Return true if *ob* is a slice object; *ob* must not be *NULL*.
    2020
    2121
    22 .. cfunction:: PyObject* PySlice_New(PyObject *start, PyObject *stop, PyObject *step)
     22.. c:function:: PyObject* PySlice_New(PyObject *start, PyObject *stop, PyObject *step)
    2323
    2424   Return a new slice object with the given values.  The *start*, *stop*, and
     
    2929
    3030
    31 .. cfunction:: 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)
    3232
    3333   Retrieve the start, stop and step indices from the slice object *slice*,
     
    4141   You probably do not want to use this function.  If you want to use slice
    4242   objects in versions of Python prior to 2.3, you would probably do well to
    43    incorporate the source of :cfunc:`PySlice_GetIndicesEx`, suitably renamed,
     43   incorporate the source of :c:func:`PySlice_GetIndicesEx`, suitably renamed,
    4444   in the source of your extension.
    4545
    4646   .. versionchanged:: 2.5
    47       This function used an :ctype:`int` type for *length* and an
    48       :ctype:`int *` type for *start*, *stop*, and *step*. This might require
     47      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
    4949      changes in your code for properly supporting 64-bit systems.
    5050
    5151
    52 .. 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)
     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)
    5353
    54    Usable replacement for :cfunc:`PySlice_GetIndices`.  Retrieve the start,
     54   Usable replacement for :c:func:`PySlice_GetIndices`.  Retrieve the start,
    5555   stop, and step indices from the slice object *slice* assuming a sequence of
    5656   length *length*, and store the length of the slice in *slicelength*.  Out
     
    6363
    6464   .. versionchanged:: 2.5
    65       This function used an :ctype:`int` type for *length* and an
    66       :ctype:`int *` type for *start*, *stop*, *step*, and *slicelength*. This
     65      This function used an :c:type:`int` type for *length* and an
     66      :c:type:`int *` type for *start*, *stop*, *step*, and *slicelength*. This
    6767      might require changes in your code for properly supporting 64-bit
    6868      systems.
Note: See TracChangeset for help on using the changeset viewer.