01.12.21 09:56, Ethan Furman пише:
> Some searching turned up issue 36793: "Do not define unneeded __str__
> equal to __repr__" .
> 
> As can be seen, `__str__` is needed for inheritance to work properly. 
> Thoughts on reverting that patch?

As the author of issue36793 I do not think so. If you replace int with
list you will get the same result. If you make Blah an int subclass you
will get the same result. If you want to get different results set
Huh.__str__ explicitly to object.__str__ or int.__repr__.

_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/U3VVGYXXQ4RED64SLCX63BJITCCVLJFL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to