>> Aside from the other responses (unittests, pychecker/pylint), you >> might also consider using __slots__ for new-style classes:
Alan> I've been shouted at for suggesting exactly that! :-) Maybe Aahz didn't notice my post. The OP sort of seemed like he was pining for attribute declarations. __slots__ is the closest thing Python has to them. I don't use them myself (since I've basically avoided new-style classes so far). Skip -- http://mail.python.org/mailman/listinfo/python-list