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

__repr__ return __str__ for all Copyable objects #782

Merged
merged 1 commit into from Feb 8, 2017

Conversation

Projects
None yet
2 participants
@jabooth
Member

jabooth commented Feb 8, 2017

See #752 for discussion.

This maps __repr__ to return __str__ for all Copyable objects (i.e. neigh on everything in Menpo).

It's a strange mixture of concerns, but for a two line addition it actually makes a profound difference to discoverability and usability in the notebook.

Before:
screenshot 2017-02-08 09 54 39

After:
screenshot 2017-02-08 09 54 22

@patricksnape patricksnape merged commit 473bfc8 into menpo:master Feb 8, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
macOS MenpoBot Jenkins build passed
Details

@patricksnape patricksnape deleted the jabooth:repr_show_str branch Feb 8, 2017

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