Skip to content

shape parameter for np.random function should be called `shape` #2986

Closed
njsmith opened this Issue Feb 14, 2013 · 5 comments

2 participants

@njsmith
NumPy member
njsmith commented Feb 14, 2013

Everything in numpy uses the convention that arrays shapes are called shape... except np.random. This just confused me yet again. Is there any good reason we can't switch to shape= as the canonical name for this argument? Obviously we would continue to support size= as an alias for some long time, but at least I would stop stubbing my toe on this...

@charris
NumPy member
charris commented Feb 14, 2013

I wouldn't have a problem with that as I usually need to think a bit to recall the right keyword.

@njsmith
NumPy member
@charris
NumPy member
charris commented Feb 21, 2014

@njsmith So this can be closed?

@njsmith
NumPy member
@charris
NumPy member
charris commented Feb 21, 2014

Well, I'm on a closing hunt, so that makes me happy. It all sums to zero ;)

@charris charris closed this Feb 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.