cpython: c59b2c4f4cac (original) (raw)

Mercurial > cpython

changeset 97328:c59b2c4f4cac

Stefan Krah skrah@bytereef.org
date Sat, 08 Aug 2015 14:34:17 +0200
parents c7c4b8411037(current diff)d1ef54751412(diff)
children 3eb4f96a3b30
files
diffstat 4 files changed, 30 insertions(+), 13 deletions(-)[+] [-] Doc/c-api/buffer.rst 15 Doc/c-api/memoryview.rst 2 Doc/glossary.rst 18 Doc/library/stdtypes.rst 8

line wrap: on

line diff

--- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -96,8 +96,8 @@ a buffer, see :c:func:PyObject_GetBuffe[](#l1.3) block of the exporter. For example, with negative :c:member:~Py_buffer.strides` the value may point to the end of the memory block.

.. c:member:: void *obj @@ -281,11 +281,14 @@ of the flags below it. +-----------------------------+-------+---------+------------+ +.. index:: contiguous, C-contiguous, Fortran contiguous + contiguity requests

~~~~~~~~~~~~~~~~~~~ -C or Fortran contiguity can be explicitly requested, with and without stride -information. Without stride information, the buffer must be C-contiguous. +C or Fortran :term:contiguity <contiguous> can be explicitly requested, +with and without stride information. Without stride information, the buffer +must be C-contiguous. .. tabularcolumns:: |p{0.35\linewidth}|l|l|l|l| @@ -466,13 +469,13 @@ Buffer-related functions .. c:function:: int PyBuffer_IsContiguous(Py_buffer *view, char order) Return 1 if the memory defined by the view is C-style (order is

.. c:function:: void PyBuffer_FillContiguousStrides(int ndim, Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t itemsize, char order)

--- a/Doc/c-api/memoryview.rst +++ b/Doc/c-api/memoryview.rst @@ -35,7 +35,7 @@ any other object. .. c:function:: PyObject *PyMemoryView_GetContiguous(PyObject *obj, int buffertype, char order)

--- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -109,8 +109,10 @@ Glossary A :term:text file reads and writes :class:str objects. bytes-like object

@@ -169,6 +171,18 @@ Glossary statement by defining :meth:__enter__ and :meth:__exit__ methods. See :pep:343.

+

+ coroutine Coroutines is a more generalized form of subroutines. Subroutines are entered at one point and exited at another point. Coroutines can be

--- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -3561,7 +3561,7 @@ copying. Cast a memoryview to a new format or shape. shape defaults to [byte_length//new_itemsize], which means that the result view will be one-dimensional. The return value is a new memoryview, but

The destination format is restricted to a single element native format in @@ -3752,19 +3752,19 @@ copying. .. attribute:: c_contiguous

.. versionadded:: 3.3 .. attribute:: f_contiguous

.. versionadded:: 3.3 .. attribute:: contiguous

.. versionadded:: 3.3