Skip to content

WIP: Move dtype.__repr__ and __str__ to python #10594

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

Closed
wants to merge 2 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Feb 15, 2018

Fails on my machine, hoping for better diagnostics from travis

@eric-wieser eric-wieser changed the title WIP: Move descr.__repr__ and __str__ to python WIP: Move dtype.__repr__ and __str__ to python Feb 15, 2018
Doing proper error checking of string concatenation in python super tedious.
As a results, we're not doing it, making us prone to exceptions turning into segfaults.
This moves all of the __str__ and __repr__ functions, where speed is irrelevant, into np.core._dtype.
If `repr` throws this would previously segfault
@eric-wieser
Copy link
Member Author

Mystery resolved, moved to #10602 which has a better branch name

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.

2 participants