[Tutor] How to call a method with a print statement?

Luke Paireepinart rabidpoobear at gmail.com
Thu Nov 12 12:35:21 CET 2009

On Thu, Nov 12, 2009 at 5:29 AM, Jeff R. Allen <jra at nella.org> wrote:

> You are looking for the __str__ method. See
> http://docs.python.org/reference/datamodel.html#object.__str__
> Can't you also implement __repr__?

(bottom-posted for Dave)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091112/f980d0ea/attachment.htm>

More information about the Tutor mailing list