[Numpy-discussion] Different attributes for NumPy types

Bruce Southey bsouthey@gmail....
Thu May 22 14:32:32 CDT 2008

Thanks very much for the confirmation.


On Thu, May 22, 2008 at 2:09 PM, Robert Kern <robert.kern@gmail.com> wrote:
> On Thu, May 22, 2008 at 10:24 AM, Travis E. Oliphant
> <oliphant@enthought.com> wrote:
>> Bruce Southey wrote:
>>> Hi,
>>> Is it bug if different NumPy types have different attributes?
>> I don't think so, other than perhaps we should not have the Python types
>> in the numpy namespace.
>> numpy.float is just __builtin__.float   which is a Python type not a
>> NumPy data-type object.
>> numpy.float64 inherits from numpy.float however.
> And I believe this is the cause of the difference between the
> attributes of numpy.float32/numpy.float128 and numpy.float64. Same
> deal with int0 and int64 on your presumably 64-bit platform.
> --
> Robert Kern
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>  -- Umberto Eco
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion

More information about the Numpy-discussion mailing list