Catching errors in attribute names at assigment
Pawel Kraszewski
pawel_Kraszewski at wp.pl
Mon Jun 21 17:50:06 EDT 2004
Heather Coppersmith wrote:
>> If you say __all__=["a","b","c"], those 3 attributes are the
>> only ones valid for field/method accessing. So class.a=5 is ok,
>> but class.d=5 raises exception.
> ITYM __slots__ instead of __all__.
My fault, __all__ is for module members, not class members.
Sorry for that.
--
Pawel Kraszewski FreeBSD/Linux
E-Mail/Jabber Phone ICQ GG
Pawel_Kraszewski at wp.pl +48 604 777447 45615564 69381
More information about the Python-list
mailing list