You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some content with long and sometimes deeply nested lists (from np.ndarray.tolist()). While it is readable to print with newlines for every element, it would IMO be much cleaner to omit newlines in the inner-most list, and replace with spaces. For example,
It’s an interesting use case, but pretty printing is a bit complicated in the general case. If you had a PR to implement this it would be strongly considered so long as it doesn’t affect performance of the normal case.
I have some content with long and sometimes deeply nested lists (from
np.ndarray.tolist()
). While it is readable to print with newlines for every element, it would IMO be much cleaner to omit newlines in the inner-most list, and replace with spaces. For example,Currently:
Desired:
Would this be considered? Or too much of a special case?
Thanks,
The text was updated successfully, but these errors were encountered: