diff options
author | Stefan Krah <skrah@bytereef.org> | 2015-08-08 12:33:28 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2015-08-08 12:33:28 (GMT) |
commit | 70e543b266d273217869091b90a3cedbe32b4a2e (patch) | |
tree | 2615139467bb6fa052635ec6f8c53187e600a341 /Doc/library/stdtypes.rst | |
parent | 0c51595a784787d8e198af910cb6d79172ee52bb (diff) | |
download | cpython-70e543b266d273217869091b90a3cedbe32b4a2e.zip cpython-70e543b266d273217869091b90a3cedbe32b4a2e.tar.gz cpython-70e543b266d273217869091b90a3cedbe32b4a2e.tar.bz2 |
Issue #23756: Clarify the terms "contiguous" and "bytes-like object".
Patch by Martin Panter.
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r-- | Doc/library/stdtypes.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index f0cc56b..8573416 100644 --- 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 buffer itself is not copied. Supported casts are 1D -> C-contiguous + the buffer itself is not copied. Supported casts are 1D -> C-:term:`contiguous` and C-contiguous -> 1D. The destination format is restricted to a single element native format in @@ -3752,19 +3752,19 @@ copying. .. attribute:: c_contiguous - A bool indicating whether the memory is C-contiguous. + A bool indicating whether the memory is C-:term:`contiguous`. .. versionadded:: 3.3 .. attribute:: f_contiguous - A bool indicating whether the memory is Fortran contiguous. + A bool indicating whether the memory is Fortran :term:`contiguous`. .. versionadded:: 3.3 .. attribute:: contiguous - A bool indicating whether the memory is contiguous. + A bool indicating whether the memory is :term:`contiguous`. .. versionadded:: 3.3 |