Re: [Numpy-discussion] Is __array_interface__ supposed to work on numpy scalars?

2008-01-07 Thread Travis E. Oliphant
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 do

Re: [Numpy-discussion] Is __array_interface__ supposed to work on numpy scalars?

2008-01-07 Thread Travis E. Oliphant
Andrew Straw wrote: > Travis E. Oliphant wrote: > >> 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_interfa

Re: [Numpy-discussion] Is __array_interface__ supposed to work on numpy scalars?

2008-01-07 Thread Andrew Straw
Travis E. Oliphant wrote: > 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 nu

Re: [Numpy-discussion] Is __array_interface__ supposed to work on numpy scalars?

2008-01-07 Thread Travis E. Oliphant
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 do

[Numpy-discussion] Is __array_interface__ supposed to work on numpy scalars?

2008-01-07 Thread Andrew Straw
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..