-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix broken show method for Base.LogicalIndex #34551
Conversation
Should we change the 2-arg show as well? |
2965c5b
to
dc8d5f8
Compare
I think we should change show function with 2 args to maintain the consistency with the 3 args show method. |
…od for LogicalIndex\
I have updated the 2 args show method as well in last commit. |
As discussed in #34364, it seems like we may not want |
@stevengj as explained by Matt Bauman why he considers it to be a subtype of Abstract array in his comment "#34364 (comment)", is this fix fine? |
Failures are unrelated (a timeout and a distributed test failure). |
* Fix broken show method for Base.LogicalIndex * Change show method with 2 args to be consistent with 3 args show method for LogicalIndex\
* Fix broken show method for Base.LogicalIndex * Change show method with 2 args to be consistent with 3 args show method for LogicalIndex\
* Fix broken show method for Base.LogicalIndex * Change show method with 2 args to be consistent with 3 args show method for LogicalIndex\
Fixes #34364
julia> show(stdout, "text/plain", Base.LogicalIndex([true]))
now shows the following output1-element Base.LogicalIndex{Int64,Array{Bool,1}}: 1
Output is similar to that of collect method on LogicalIndex as suggested by @stevengj
In my opinion this is the appropriate change required.
Defined
print_array(io,X::LogicalIndex) = print_array(io,collect(X))