[SciPy-dev] Broken Python Type Alias

Christopher Hanley chanley at stsci.edu
Mon Oct 31 10:10:01 EST 2005


I should add that this is also true for the other Python types as well 
(int, bool, etc...).


Christopher Hanley wrote:
> Greetings,
> 
> The alias to the python type "sb.float" that previously was working in 
> my regression testing system now raises an attribute error.  However, 
> "sb.float_" still functions correctly. Example:
> 
> 
> 
> In [16]: x = sb.ones((10,),dtype=sb.float)
> ---------------------------------------------------------------------------
> exceptions.AttributeError                            Traceback (most 
> recent call last)
> 
> /data/sparty1/dev/devCode/<console>
> 
> AttributeError: 'module' object has no attribute 'float'
> 
> 
> 
> My regression tests first showed this behavior yesterday morning with 
> the checkout of newcore revision 1396.
> 
> Chris
> 




More information about the SciPy-Dev mailing list