Commits

Stefan Krah committed a208955

Whitespace.

Comments (0)

Files changed (3)

            return False
        if any(v % itemsize for v in strides):
            return False
-   
+
        if ndim <= 0:
            return ndim == 0 and not shape and not strides
        if 0 in shape:
            return True
-   
+
        imin = sum(strides[j]*(shape[j]-1) for j in range(ndim)
                   if strides[j] <= 0)
        imax = sum(strides[j]*(shape[j]-1) for j in range(ndim)
                   if strides[j] > 0)
-   
+
        return 0 <= offset+imin and offset+imax+itemsize <= memlen
 
 

Doc/c-api/typeobj.rst

    are read-only for the consumer.
 
    :c:func:`PyBuffer_FillInfo` provides an easy way of exposing a simple
-   bytes buffer while dealing correctly with all request types. 
+   bytes buffer while dealing correctly with all request types.
 
    :c:func:`PyObject_GetBuffer` is the interface for the consumer that
    wraps this function.

Doc/library/stdtypes.rst

          >>> from ctypes import BigEndianStructure, c_long
          >>> class BEPoint(BigEndianStructure):
          ...     _fields_ = [("x", c_long), ("y", c_long)]
-         ... 
+         ...
          >>> point = BEPoint(100, 200)
          >>> a = memoryview(point)
          >>> b = memoryview(point)
       Used internally for PIL-style arrays. The value is informational only.
 
    .. attribute:: c_contiguous
-      
+
       A bool indicating whether the memory is C-contiguous.
 
       .. versionadded:: 3.3
 
    .. attribute:: f_contiguous
-      
+
       A bool indicating whether the memory is Fortran contiguous.
 
       .. versionadded:: 3.3
 
    .. attribute:: contiguous
-      
+
       A bool indicating whether the memory is contiguous.
 
       .. versionadded:: 3.3