Steven D'Aprano added the comment: > Many specialized reprs follow a pattern <... at {hexadecimal id}...>. > But there are few deviations: [...] > Proposed patch makes these cases to conform with other reprs.
I oppose making this change. The exact format of this generic repr of instances is not a part of Python's API, and we should not encourage people to think that it must always follow the same pattern or rely on that pattern. Changing the repr risks breaking doctests. That *might* be acceptable if there was some obvious benefit to the change, e.g. changing from some generic <whatever at some_id> to a nicer, more useful display. But to risk breaking doctests just for consistency with other generic displays when that consistency has never been promised is not worth it. ---------- nosy: +steven.daprano _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22031> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com