"Vincent Balmori" wrote
Last thing I need to do solve is the __str__ problem. I can print
the name
fine, but everytime I try to put in the self.hunger and self.boredom
values
I get:
TypeError: Can't convert 'int' object to str implicitly
That's right you need to do it explicitly.
Either b
On 27 June 2011 19:52, Vincent Balmori wrote:
>
> Last thing I need to do solve is the __str__ problem. I can print the name
> fine, but everytime I try to put in the self.hunger and self.boredom values
> I get:
>
> TypeError: Can't convert 'int' object to str implicitly
>
>
OK, so if Python can'
Last thing I need to do solve is the __str__ problem. I can print the name
fine, but everytime I try to put in the self.hunger and self.boredom values
I get:
TypeError: Can't convert 'int' object to str implicitly
http://old.nabble.com/file/p31940427/critter_caretaker3.py
critter_caretaker3.py
"Vincent Balmori" wrote
I'm on the Critter Caretake problem that involves handling more than
one
critter. I have looked At David Merrick's threads for some answers,
Given that David hasn't solved the problem yet that may not
be the best source! :-)
difference is that he created a whole ne
I'm on the Critter Caretake problem that involves handling more than one
critter. I have looked At David Merrick's threads for some answers, but the
difference is that he created a whole new class to handle it, while I only
made more critter objects. The only problem I have left is to have my
acti