substitution __str__ method of an instance

Christian Heimes lists at cheimes.de
Thu Oct 23 04:55:56 EDT 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.

Christian




More information about the Python-list mailing list