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

2011-12-18 Thread Russell Shackleton
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. I have added the traceback

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

2011-12-18 Thread Russell Shackleton
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. How do I fix this code, pl