[Numpy-discussion] Bits info in np.finfo

Thomas Robitaille thomas.robitaille@gmail....
Fri Nov 6 13:11:55 CST 2009


Hi,

Is there a reason that np.finfo does not have a bits attribute?

In [6]: np.iinfo(np.int16).bits
Out[6]: 16

In [7]: np.finfo(np.float32).bits
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call  
last)

/Users/tom/<ipython console> in <module>()

AttributeError: 'finfo' object has no attribute 'bits'

Should I submit a bug report?

Thanks,

Thomas


More information about the NumPy-Discussion mailing list