Skip to content

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

@asfimport

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions