Object default value

ago agostino.russo at gmail.com
Tue Sep 20 22:05:58 CEST 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(...); 

More information about the Python-list mailing list