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 rbcollins
Recipients chris.jerdonek, eric.araujo, michael.foord, r.david.murray, rbcollins
Date 2016-09-13.03:47:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473738458.94.0.626580008877.issue16288@psf.upfronthosting.co.za>
In-reply-to
Content
@Chris - I don't like the idea of making new classes on the fly like that, it seems more likely to provoke bugs (as type(case) != SomeSpecificClass) anymore after that, vs just not relying on __str__ directly.

Going back to Michael's proposal of short description, long description and repr (with str == repr) for debugging. - that is missing id(), and id() is IMO definitely still needed.

I was proposing id(), friendlyId(), shortDescription(), and __str__ calls friendlyId(), and __repr__ is a regular <...> repr.
History
Date User Action Args
2016-09-13 03:47:39rbcollinssetrecipients: + rbcollins, eric.araujo, r.david.murray, michael.foord, chris.jerdonek
2016-09-13 03:47:38rbcollinssetmessageid: <1473738458.94.0.626580008877.issue16288@psf.upfronthosting.co.za>
2016-09-13 03:47:38rbcollinslinkissue16288 messages
2016-09-13 03:47:38rbcollinscreate