substitution __str__ method of an instance

Christian Heimes lists at
Thu Oct 23 10:55:56 CEST 2008

netimen wrote:
> How can I substitute __str__ method of an instance?

It's not possible. For performance and other reasons most __*__ methods 
are looked up on the type only.


More information about the Python-list mailing list