Data attributes...

Mark McEahern marklists at mceahern.com
Thu Jan 24 14:01:25 EST 2002


Emile van Sebille wrote:
> You can have the class enforce rules that only allow pre-defined
> attributes.  Look for __setattr__ as you continue through the tutorial.

Is this what __slots__ is for in new-style classes?  (Python 2.2).

// mark




More information about the Python-list mailing list