design question: no new attributes
michele.simionato at gmail.com
Thu Mar 1 10:21:38 CET 2007
On Feb 26, 10:48 pm, "Alan Isaac" <ais... at american.edu> wrote:
> I have a class whose instances should only receive attribute
> assignments for attributes that were created at inititialization.
> If slots are not appropriate, what is the Pythonic design for this?
> Alan Isaac
There is a Cookbook recipe for that:
More information about the Python-list