[Numpy-discussion] array, asarray as contiguous and friends

Colin J. Williams cjw at sympatico.ca
Fri Mar 24 04:38:16 CST 2006


Sasha wrote:

>On 3/23/06, Travis Oliphant <oliphant at ee.byu.edu> wrote:
>  
>
>>Thus, in my mind, the array call should get another flag keyword that
>>forces a contiguous result.
>>    
>>
>
>Please don't! 
>
+1

>The fortran flag is bad enough, but has too much history
>behind it.  Let's not breed boolean parameters. Sooner or later
>someone will use keword arguments positionally and you will end up
>guessing what
>
>array([1,2], int8_, 1, 1, 0, 0)
>
>means.
>  
>
The use of keyword parameters can help here.  Various editors use them 
to provide tips and there is the help function.

Colin W.





More information about the Numpy-discussion mailing list