Style - was Re: numpy.repeat TypeError: array cannot be safely cast to required type

Colin J. Williams cjw at sympatico.ca
Sat Nov 4 06:30:07 CST 2006



Tim Hochberg wrote:
[snip]
> A style note: please use the named dtypes (int32, uint32, etc) rather 
> than the old-style letter codes; the former is much clearer. The answer 
> to your question might  have been immediately apparent had you been 
> using named dtypes.
>
>   
+1
>  Personally, I'd also prefer people use the "ones([n])" syntax instead 
> of the I-wish-it-were-deprecated-but-it's-too-much-to-hope-for "ones(n)" 
> syntax.  T
>
> -tim
>
>   
Could you elaborate please?

Colin W.

-------------------------------------------------------------------------
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




More information about the Numpy-discussion mailing list