Andrew Straw wrote: > Hi, > > I'm forwarding a bug from PyOpenGL. The developer, Mike Fletcher, is > having troubles accessing a numpy scalar with the __array_interface__. > Is this supposed to work? Or should __array_interface__ trigger an > AttributeError on a numpy scalar? Note that I haven't done any digging > on this myself... >
The other approach would be to get the data attribute directly (which returns a pointer to a read-only buffer object containing the data). I just fixed the reference problem with the scalar array_interface, though. -Travis _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion