Object default value

Diez B. Roggisch deets at nospam.web.de
Tue Sep 20 22:54:00 CEST 2005

ago wrote:
> Is it possible to have a default value associated python objects? I.e.
> to flag an attribute in such a way that the assignment operator for the
> object returns the default attribute instead of the object itself, but
> calls to other object attributes are properly resolved? (I don't think
> so, but I am not sure)

You're descriptions aren't very clear. Maybe you can put that in a 
greater context - what do you want to achieve?

And the assignment-operator isn't overloadable - that is for sure!


More information about the Python-list mailing list