Robert Collins added the comment:

@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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16288>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to