[Numpy-discussion] Time for beta1 of NumPy 1.0
Travis Oliphant
oliphant at ee.byu.edu
Fri Jun 30 16:11:21 EDT 2006
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
More information about the NumPy-Discussion
mailing list