Steven D'Aprano <st...@remove-this-cybersource.com.au> writes:
> For example... is this instance immutable?
> 
> class Foo:
>     bar = None
> 
> f = Foo()
> f.baz = True
> If so, what do you mean by immutable?

If I understand Carl, yes, f is immutable.  When you set f.bar, the
contents of f.__dict__ changes but f itself does not change.  It still
points to the same dictionary, etc.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to