-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
0/1 printing of false/true is confusing in Dict #30683
Comments
The |
That being said, we may want to think about disabling printing of boolean values as 0/1 when printing dict (or maybe in general for printing pairs and tuples even if the typeinfo indicates a |
Would be good to revisit this. |
This might be another case where a |
Please see #33260 |
That seems orthogonal to the present issue, which is simply that |
@JeffBezanson @stevengj Can you add some context as to why this behavior exists:
instead of showing |
#30575 is the context. Now, one could ask the question if it is worth printing it compactly like that for a |
Also,
seems to be inconsistent with
It looks like
display(Dict(...))
does not settypeinfo
whileshow(Dict(...))
does. Here is the code I used to check it:then
shows
(i.e., no typeinfo) while
shows
i.e., typeinfo is set to
LogIO
.The text was updated successfully, but these errors were encountered: