Skip to content
This repository

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

Closed
njsmith opened this Issue · 5 comments

2 participants

Nathaniel J. Smith Charles Harris
Nathaniel J. Smith
Owner

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

Charles Harris
Owner

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

Nathaniel J. Smith
Owner
Charles Harris
Owner

@njsmith So this can be closed?

Nathaniel J. Smith
Owner
Charles Harris
Owner

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

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.