[Numpy-discussion] Should object arrays have a buffer interface?
Sun Dec 28 20:15:08 CST 2008
On Sun, Dec 28, 2008 at 20:38, Andreas Klöckner <firstname.lastname@example.org> wrote:
> On Montag 29 Dezember 2008, Robert Kern wrote:
>> On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner <email@example.com>
>> > Hi all,
>> > I don't think PyObject pointers should be accessible via the buffer
>> > interface. I'd throw an error, but maybe a (silenceable) warning would
>> > do. Would have saved me some bug-hunting.
>> Can you describe in more detail what problem it caused?
> Well, I'm a little bit embarrassed. :) But here goes.
> I have one-line MPI wrappers that build on Boost.MPI and Boost.Python. They
> take a numpy array, obtain its buffer, and shove that into Boost.MPI's
How do you communicate the dtype?
"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