Skip to content

get rid of <> surrounding repr #1

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
glyph opened this issue Jan 27, 2015 · 1 comment
Closed

get rid of <> surrounding repr #1

glyph opened this issue Jan 27, 2015 · 1 comment

Comments

@glyph
Copy link
Contributor

glyph commented Jan 27, 2015

The convention of putting <> around a repr is to make it syntactically invalid so it won't work with eval. But attr's reprs will in fact work with eval, so IMHO you should just leave them out.

@hynek
Copy link
Member

hynek commented Jan 27, 2015

Interesting, I didn’t know that. I intend to add a repr-display-hook anyway so if someone is in love with it…

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

No branches or pull requests

2 participants