Spelling mistakes!

skip at pobox.com skip at pobox.com
Sat Jan 7 10:14:46 EST 2006


    >> 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



More information about the Python-list mailing list