[Numpy-discussion] How to access to the start of a mmaped numarray object?

Francesc Alted falted at openlc.org
Thu Oct 16 06:00:01 EDT 2003

A Dijous 16 Octubre 2003 13:12, Francesc Alted va escriure:
>     PyObject_AsReadBuffer(recarr._data._buffer, &self.mmrbuf, &buflen)
>     (this produces a segmentation fault)
>     PyObject_AsReadBuffer(recarr._data.__buffer__(), &self.mmrbuf, &buflen)
>     (another seg fault)

Ooops, sorry, the segmentation fault was taking place *after* that statement.
This code seems to work well. Anyways.

Francesc Alted

More information about the NumPy-Discussion mailing list