[Numpy-discussion] "expected a single-segment buffer object"

Robert Kern robert.kern@gmail....
Thu Jul 10 19:08:41 CDT 2008


On Thu, Jul 10, 2008 at 10:33, Anne Archibald <peridot.faceted@gmail.com> wrote:
> 2008/7/9 Robert Kern <robert.kern@gmail.com>:
>
>> Because that's just what a buffer= argument *is*. It is not a place
>> for presenting the starting pointer to exotically-strided memory. Use
>> __array_interface__s to describe the full range of representable
>> memory. See below.
>
> Aha! Is this stuff documented somewhere?

_The Guide to Numpy_, section 3.1.4.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco


More information about the Numpy-discussion mailing list