[Numpy-discussion] Args for ones, zeros, rand, eye, ones, empty (possible 1.0 change?)

Alan G Isaac aisaac at american.edu
Mon Jul 3 09:58:02 CDT 2006


On Mon, 03 Jul 2006, Sven Schreiber apparently wrote: 
> Anything that allows me to develop a consistent habit is fine with me! 

Consistency! That is exactly the issue,
especially for those who wish to teach with numpy.

I do not want to tell my students to write
ones([5,5])
but
rand(5,5)
and although relatively new to Python
I actually like the practice of providing
dimensions in a list or tuple.

But I care less about the choice of convention
than about adherence to the convention.

Cheers,
Alan Isaac





More information about the Numpy-discussion mailing list