[Scipy-tickets] [SciPy] #638: Wrong __name__ attribute for some numpy types

SciPy scipy-tickets@scipy....
Mon Apr 14 08:50:22 CDT 2008

#638: Wrong __name__ attribute for some numpy types
 Reporter:  OrenT   |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  0.7     
Component:  Other   |     Version:          
 Severity:  normal  |    Keywords:          
 >>> for name, v in vars(numpy).items():
 ...     if type(v) is type and getattr(numpy, v.__name__) is not v:
 ...         print name, v.__name__
 uintc uint32
 uint0 uint32
 intc int32
 intp int32
 uintp uint32
 int0 int32

 All these types claim to be "int32", but aren't.

Ticket URL: <http://scipy.org/scipy/scipy/ticket/638>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list