![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: "Aliasing" an object's __str__ to a different method
From: Michael Hoffman <cam.ac.uk@mh391.invalid>
Date: Sat Jul 23 2005 - 01:46:21 CEST
Jeffrey E. Forcier wrote:
> In other words, str() is _NOT_ apparently calling <object>.__str__ as
I'm too tired and/or lazy to check, but I believe str() is calling
Someone else or Google can probably enlighten you on the reason for this
If you redirect to a second method you can overwrite on the instance, I
-- Michael HoffmanReceived on Thu Sep 29 17:06:57 2005 |