Message270345
Thanks, let's roll it back.
The reason it never was an issue for old-style classes is that they
behaved like this from the start, so nobody wrote tests that depended
on the predictability of repr(). But new-style classes have had this
nice clean repr() since they were introduced (in 2.3?) so it's
unsurprising that this is now depended upon.
Here's a link to some test code for mypy that broke:
https://github.com/python/mypy/blob/master/mypy/util.py#L22-L23
It may be irreprehensible code but it works for Python 3.2-3.5 (and
for new-style classes in Python 2, except mypy requires Python 3), and
broke in 3.6. |
|
Date |
User |
Action |
Args |
2016-07-13 20:47:37 | gvanrossum | set | recipients:
+ gvanrossum, brett.cannon, rhettinger, terry.reedy, petere, python-dev, martin.panter, kushal.das, matrixise, ppperry, Tim.Graham, mbussonn, abarry, Winterflower, Nofar Schnider |
2016-07-13 20:47:36 | gvanrossum | link | issue25548 messages |
2016-07-13 20:47:36 | gvanrossum | create | |
|