-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: Using start/step as keywords only has incorrect behaviour #17764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Gosh - yes - that's super-weird. You can see that the |
Yes .. I thought only stop was throwing an error, so I tried only start (though it is incorrect). |
The only significant recent change seems to be #10263. |
As far as I can tell this behaviour is unchanged since the dawn of time, so it is not a regression. But I agree, we should probably make start given only as kwarg an error (we could deprecate, but I guess its weird enough to be called a bug) and make This could actually be a nice simple thing for a newcomer to work on. |
The error message comes from Python, so perhaps the parsing has changed? |
@charris this has always been |
And is new in Python 3.7. EDIT: Only the wording has changed, fails the same way in 3.6. |
Just noticed there is another subtlety here and that is: |
…mpygh-17764) * This matches args behaviour. * Avoids `arange(start=4)` from returning a range from 0 to 4 * Allows `arange(stop=4)` to run without error, to return range from 0 to 4
Uh oh!
There was an error while loading. Please reload this page.
Did version 1.18.5 break numpy.arange??
The text was updated successfully, but these errors were encountered: