win32all-132 / Word Automation
Mark Hammond
MarkH at ActiveState.com
Tue Jun 20 07:52:25 EDT 2000
"Nikolai Kirsebom" <nikolai.kirsebom at siemens.no> wrote in message
news:394f269c.580059221 at news.mch.sni.de...
> Mark,
> Thanks for your quick response. It might be obvious ... but not
> really to me.
Hrm - not to me either!
> >>> print doc.Variables.Item(1)
> Traceback (innermost last):
> File "<interactive input>", line 1, in ?
> File
> "win32com\gen_py\00020905-0000-0000-C000-000000000046x1033x8x0.py",
> line 11402, in __str__
> return str(apply( self.__call__, args))
Ahhh! for some bizarre reason, it appears the print itself triggers this.
(Note that the exception is in the __str__ method, which is being used to
print it.
What does:
print repr( doc.Variables.Item(1) )
yield?
Mark.
More information about the Python-list
mailing list