I can\'t figure out what\'s wrong with this very simple snippet:
class A(object):
def printme(self):
print \"A\"
self.printm
It's exactly what it says: self is not defined when you call self.printme(). self isn't magically defined for you in Python; it only works inside a method which has an argument named self. If it helps, try replacing the word self with something else, say foo, throughout your program (because there is really nothing special about self as an identifier).