On Fri, Aug 17, 2012 at 11:11 PM, Matthew Love <matthewlov...@googlemail.com
> wrote:

>
> This is the error:
>
> Traceback (most recent call last):
>   File "C:\Users\Matthew\Desktop\test.py", line 16, in <module>
>     print(player.inventory())
> TypeError: 'list' object is not callable
>
>
The python debugger can also give you a hint of how player.inventory
changed:

misc $ pdb test.py
-> class Player(object):
(Pdb) n
-> player = Player()
(Pdb) n
Player created.
-> player.inventory()
(Pdb) whatis player.inventory
*Function inventory*
(Pdb) n
-> player.inventory()
(Pdb) whatis player.inventory
*<type 'list'>*
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to