Assigning a NumPy array with a zero length dimension to a memoryview fails
if the memoryview is declared contiguous in the zero-length dimension. I'm
getting a run-time error that the buffer is not C-contiguous or Fortran
contiguous.
See examples below.
Thanks,
Josh Ayers
cdef float
.
For reference, there was previously an error in the Python documentation
of this function. The documentation mistakenly said it returned an int.
This was fixed via Python issue 22580:
https://bugs.python.org/issue22580.
Thanks,
Josh Ayers
___
cython
warning because a long
is assigned to a char.
char __pyx_v_kind;
...
long __pyx_t_11;
...
__pyx_t_11 = __Pyx_PyObject_Ord(__pyx_t_8);
...
__pyx_v_kind = __pyx_t_11;
Thanks,
Josh Ayers
___
cython-devel mailing list
cython-devel@python.org
https