Skip to content

Array Printing depends on the contents of its elements #56765

Open
@longemen3000

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]display and printingAesthetics and correctness of printed representations of objects.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions