![]() |
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: Paolino <paolo_veronelli@tiscali.it>
Date: Sat Jul 23 2005 - 12:27:31 CEST
Little less ugly:
In [13]:a=A()
In [14]:a.setStr()
In [15]:str(a)
The point is str(ob) builtin looks like calling
|