[EMAIL PROTECTED] wrote: > 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
No, slots are a memory optimization trick and should NOT be used as declarations. You can find a few posts of the Martellibot on the subject. I even wrote a recipe to tell people who want static declarations how to implement them without slots: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252158 Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list