-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
enabled ellipsis here and there #863
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #863 +/- ##
==========================================
- Coverage 86.85% 86.85% -0.01%
==========================================
Files 405 405
Lines 53038 53055 +17
==========================================
+ Hits 46068 46082 +14
- Misses 6970 6973 +3 ☔ View full report in Codecov by Sentry. |
Are you sure you want to do this? This is not standard behavior. Numpy for example uses ellipsis to indicate, "for all other axes do nothing". I.e. it is not something that applies for a single axis. |
But right now So before one would do:
Why would The standard says:
which I kind of think is ok here? But I would be happy to hear why not! ;) |
I have to admit when I say standard I mean In particular: array[..., 0] means:
It is true that for now we don't support multiple dimensions, but this is where it seems the implementation would go if we supported them. I am ok with using the ellipsis as arguments of the function call (although I don't see the problem with using None), but I would not support it in |
I see, I think mainly this would be useful in the
Agreed, Let me fix it... |
So, would only for |
I guess it depends on the person, I am used to |
Yeah, for sure we need to have them both. |
For me it would be unnecessary :) |
(no one has ever complained about it) |
Should be improved so None fully gets removed. Signed-off-by: Nick Papior <nickpapior@gmail.com>
Signed-off-by: Nick Papior <nickpapior@gmail.com>
Signed-off-by: Nick Papior <nickpapior@gmail.com>
This seems a bit more natural than None. Signed-off-by: Nick Papior <nickpapior@gmail.com>
To contest the This means everything: array[...] = 0. so I would think that using ellipsis for everything in these arguments would make sense. I have now amended so |
Signed-off-by: Nick Papior <nickpapior@gmail.com>
Should be improved so None fully gets removed.