"r" <[email protected]> wrote in message news:[email protected]...
On Sep 19, 9:53 pm, Peng Yu <[email protected]> wrote:
(snip)
> I want to understand the exact meaning of the last line ('__repr__ = > __str__'). Would you please point me to the section of the python > manual that describes such usage.simple i assined any call to __repr__ to the __str__ methods.
Just define __repr__. str() uses __repr__ if __str__ isn't defined. -Mark -- http://mail.python.org/mailman/listinfo/python-list
