def printcolor():
       print self.color

Should be

def printcolor(self):
     print self.color

Class methods should accept at least one argument, self.

--
Andrew Ulysses Baker
"failrate"

Reply via email to