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

SciPy scipy-tickets@scipy....
Mon Apr 14 09:24:03 CDT 2008


#638: Wrong __name__ attribute for some numpy types
--------------------+-------------------------------------------------------
 Reporter:  OrenT   |        Owner:  somebody
     Type:  defect  |       Status:  closed  
 Priority:  normal  |    Milestone:  0.7     
Component:  Other   |      Version:          
 Severity:  normal  |   Resolution:  wontfix 
 Keywords:          |  
--------------------+-------------------------------------------------------
Changes (by rkern):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 Actually, they all are on your platform. Consider them aliases to the
 platform-appropriate integer type rather than dtypes in and of themselves.

 {{{

 In [4]: import numpy

 In [5]: for name, v in vars(numpy).items():
     if type(v) is type and getattr(numpy, v.__name__) is not v:
         print name, v.__name__
         print numpy.dtype(v).itemsize
    ...:
    ...:
 uintc uint32
 4
 uint0 uint32
 4
 intc int32
 4
 intp int32
 4
 uintp uint32
 4
 int0 int32
 4
 }}}

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


More information about the Scipy-tickets mailing list