Skip to content

[C++][Python] Add a space after commas in pretty-print output #30951

Closed as not planned

Description

@asfimport

Following ARROW-14798 we can have this kind of pretty-print output:

struct: [
  -- is_valid: all not null
  -- child 0 type: int64
  [0,1,2,3,4,...,45,46,47,48,49]
  -- child 1 type: list<item: string>
  [["crown","trunk","roots"],["roots","seeds"],...,[],["crown"]],
...,

IMHO it would read better as:

struct: [
  -- is_valid: all not null
  -- child 0 type: int64
  [0, 1, 2, 3, 4, ..., 45, 46, 47, 48, 49]
  -- child 1 type: list<item: string>
  [["crown", "trunk", "roots"], ["roots", "seeds"], ..., [], ["crown"]],
...,

Reporter: Antoine Pitrou / @pitrou

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-15475. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Jan 27, 2022

    @asfimport
    Author
  2. asfimport commented on Jan 27, 2022

    @asfimport
    Author
  3. asfimport commented on Jul 12, 2022

    @asfimport
    Author

    Todd Farmer / @toddfarmer:
    This issue was last updated over 90 days ago, which may be an indication it is no longer being actively worked. To better reflect the current state, the issue is being unassigned. Please feel free to re-take assignment of the issue if it is being actively worked, or if you plan to start that work soon.

  4. kevingurney commented on Oct 2, 2023

    @kevingurney
    Member

    Note: I have opened #37981 which is related.

  5. added a commit that references this issue on Oct 5, 2023
  6. added a commit that references this issue on Oct 12, 2023
  7. added 2 commits that reference this issue on Nov 13, 2023
  8. added 2 commits that reference this issue on Feb 19, 2024
  9. github-actions commented on Mar 9, 2026

    @github-actions

    This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

  10. added
    Status: stale-warning
    on Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: C++Component: PythonStatus: stale-warningType: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions