Skip to content

ENH: Print object arrays containing lists unambiguously #8989

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

Merged
merged 2 commits into from
May 1, 2017

Conversation

eric-wieser
Copy link
Member

Previously

array([[1], [1, 1], [1, 1], [1]], dtype=object)

Now

array([list([1]), list([1, 1]), list([1, 1]), list([1])], dtype=object)

@ahaldane
Copy link
Member

+1 from me. Code LGTM.

@eric-wieser
Copy link
Member Author

Updated with a release note, that also includes an entry about #8963, since they're related

@@ -256,6 +264,7 @@ def _get_formatdict(data, precision, suppress_small, formatter):
'longcomplexfloat': lambda: LongComplexFormat(precision),
'datetime': lambda: DatetimeFormat(data),
'timedelta': lambda: TimedeltaFormat(data),
'object': lambda: _object_format,
'numpystr': lambda: repr_format,
'str': lambda: str}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting fact - this is never nor was ever used...

@homu
Copy link
Contributor

homu commented May 1, 2017

☔ The latest upstream changes (presumably #8967) made this pull request unmergeable. Please resolve the merge conflicts.

@eric-wieser eric-wieser added this to the 1.13.0 release milestone May 1, 2017
@eric-wieser
Copy link
Member Author

Adding to the milestone since this contains a release note fix for an already-included feature

@charris charris merged commit 9c3d247 into numpy:master May 1, 2017
@charris
Copy link
Member

charris commented May 1, 2017

Thanks Eric.

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

Successfully merging this pull request may close these issues.

4 participants