MS COM early and late binding

Olaf Meding OlafMeding at noSpam.compuserve.com
Tue Apr 27 18:05:25 EDT 2004


Thomas

What you suggest might work, but does not look to elegant.  Can anyone else
perhaps suggest a more elegant solution?  Thanks.

Olaf


try:
    excel.visible
except AttributeError:
    print "late bound"
else:
    print "early bound"

Hint: Attributes are case sensitive when early bound ;-)








More information about the Python-list mailing list