Scott Ransom wrote:

>On Fri, Jun 30, 2006 at 01:25:23PM -0600, Travis Oliphant wrote:
>  
>
>>Robert Kern wrote:
>>
>>    
>>
>>>Whatever else you do, leave arange() alone. It should never have accepted 
>>>floats 
>>>in the first place.
>>> 
>>>      
>>>
>>Actually, Robert makes a good point.  arange with floats is 
>>problematic.   We should direct people to linspace instead of changing 
>>the default of arange.  Most new users will probably expect arange to 
>>return a type similar to Python's range which is int.
>>    
>>
>... 
>  
>
>>So, I think from both a pragmatic and idealized situtation, arange 
>>should stay with the default of ints.   People who want arange to return 
>>floats should be directed to linspace.
>>    
>>
I should have worded this as:

"People who want arange to return floats *as a default* should be 
directed to linspace"

So, basically, arange is not going to change. 

Because of this, shifting over was a cinch.   I still need to write the 
convert-script code that inserts dtype=int
in routines that use old defaults:  *plea* anybody want to write that??

-Travis





Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to