Message223660
> 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. |
|
Date |
User |
Action |
Args |
2014-07-22 11:48:07 | steven.daprano | set | recipients:
+ steven.daprano, vstinner, python-dev, serhiy.storchaka |
2014-07-22 11:48:07 | steven.daprano | link | issue22031 messages |
2014-07-22 11:48:07 | steven.daprano | create | |
|