[Python-Dev] Python-Dev] Re: __str__ does not default to __repr__ if a base classhas __str__

alloydflanagan at comcast.net alloydflanagan at comcast.net
Mon May 17 15:16:48 EDT 2004


FWIW, I think the current behavior is correct.  If a __str__() method exists, it exists; we shouldn't treat an inherited method differently from one defined directly in the class.  So I would be very surprised if the inherited __str__() wasn't used.






More information about the Python-Dev mailing list