From: Travis O. <oli...@ee...> - 2006-10-17 19:19:46
|
Lisandro Dalcin wrote: >On 10/17/06, Travis Oliphant <oli...@ee...> wrote: > > >>Or you can use the Python C-API >> >>const char *buffer; >>Py_ssize_t buflen; >> >>PyObject_AsReadBuffer(scalar, (const void **)&buffer, &buflen) >> >>to retrieve a pointer to the data in buffer and the size of the data in >>buflen. >> >> >> > >Travis. Have numpy something similar to a mutable scalar, or the only >way is using an array whit only one element? > > 0-dim arrays are still mutable scalars. -Travis |