Message276154
@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. |
|
Date |
User |
Action |
Args |
2016-09-13 03:47:39 | rbcollins | set | recipients:
+ rbcollins, eric.araujo, r.david.murray, michael.foord, chris.jerdonek |
2016-09-13 03:47:38 | rbcollins | set | messageid: <1473738458.94.0.626580008877.issue16288@psf.upfronthosting.co.za> |
2016-09-13 03:47:38 | rbcollins | link | issue16288 messages |
2016-09-13 03:47:38 | rbcollins | create | |
|