Skip to content
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

Array Printing depends on the contents of its elements #56765

Open
longemen3000 opened this issue Dec 6, 2024 · 0 comments
Open

Array Printing depends on the contents of its elements #56765

longemen3000 opened this issue Dec 6, 2024 · 0 comments
Labels
arrays [a, r, r, a, y, s] display and printing Aesthetics and correctness of printed representations of objects.

Comments

@longemen3000
Copy link
Contributor

longemen3000 commented Dec 6, 2024

The default array show method checks for new lines to select if the method to display the elements is the 3-arg show or the 2-arg one:

# If the output contains line breaks, try 2-arg show instead.

The behaviour was introduced in #34387

As mentioned in slack, this is a confusing quirk of the display system. And a posible solution is mentioned here: #34387 (comment), comments are against documenting this behaviour: #54547 (comment)

@inkydragon inkydragon added display and printing Aesthetics and correctness of printed representations of objects. arrays [a, r, r, a, y, s] labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
Development

No branches or pull requests

2 participants