Re: [Tutor] Critter

2011-06-27 Thread Alan Gauld
"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

Re: [Tutor] Critter

2011-06-27 Thread Walter Prins
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'

Re: [Tutor] Critter

2011-06-27 Thread Vincent Balmori
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

Re: [Tutor] Critter

2011-06-27 Thread Alan Gauld
"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

[Tutor] Critter

2011-06-26 Thread Vincent Balmori
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