[Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods)

Mark Hammond mhammond@skippinet.com.au
Fri, 14 Apr 2000 23:11:39 +1000

> I think that we get 95% of the benefit without any of the
> "dangers"
> (though I don't agree with the arguments against) if we allow the
> attachment of properties only at compile time and
> disallow mutation of
> them at runtime.

AFAIK, this would be a pretty serious change.  The compiler just
generates (basically)PyObject_SetAttr() calls.  There is no way in
the current runtime to differentiate between "compile time" and
"runtime" attribute references...  If this was done, it would simply
be ugly hacks to support what can only be described as unpythonic in
the first place!

[Unless of course Im missing something...]