Object default value
Reinhold Birkenfeld
reinhold-birkenfeld-nospam at wolke7.net
Thu Sep 22 04:40:57 EDT 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)
Python is not Visual Basic.
In Visual Basic, objects could have a default property which was set when
the object variable was assigned to, but that was only possible because
object variables had to be set with "Set", not "Let".
Reinhold
More information about the Python-list
mailing list