Object default value
ago
agostino.russo at gmail.com
Tue Sep 20 16:05:58 EDT 2005
The print statement was only for illustrative purposes, when calling
varx=myobj I need to receive obj.x as opposed to the instance of obj,
but I also need to call vary=myobj.y. Something like that exists for
com objects/VB, for instance an excel range object uses value as the
default attribute, so that you can write
set rng=range(...);
x=rng
y=rng.value
'x==y
z=rng.attributeXYZ
More information about the Python-list
mailing list