[Tutor] 'str' object has no attribute 'description'

Wayne Werner waynejwerner at gmail.com
Sun Dec 18 23:23:36 CET 2011


On Sun, Dec 18, 2011 at 4:06 PM, Russell Shackleton <rshack at xtra.co.nz>wrote:

> I am learning Python classes by writing an adventure game. I have
> extracted just the relevant code. The player can look, go, drop, take,
> inventory but not examine.
>
> Python produces the error message in the Player class, examine function,
> in the first print statement.
>
>
It's best to give the full traceback, because it provides an awful lot of
information.

-Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111218/e2933918/attachment.html>


More information about the Tutor mailing list