This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients
Date 2000-12-19.04:08:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I disagree with the "isn't a good idea" part.

While it's indeed not a good idea to use eval(repr(x)), it *is* a good idea to make repr(x) look like a syntactically correct expression that would recreate an object with the same value as x, given the appropriate environment (e.g. imported the class or factory function).

I hate non-standard object types whose repr() is indistinguishable from that of a similar standard object -- e.g. UserList makes this mistake, and xrange() used to pretend it was a tuple.

Nevertheless I'll try to think of something to add to the docs.
History
Date User Action Args
2007-08-23 13:52:30adminlinkissue226264 messages
2007-08-23 13:52:30admincreate