win32all-132 / Word Automation
Stefan Migowsky
smigowsky at dspace.de
Tue Jun 20 09:16:42 EDT 2000
Hi,
probably there is a mix up between the generated wrappers.
In versions newer than 129, the parameter defines for calls
changed from tuple values to ints.
You could try to delete the gen-py generated file and then do
the test again. The object model of word clearly states that
Variables.Item returns a dispatch pointer to a Variable object.
Stefan
-----Original Message-----
From: Mark Hammond [mailto:MarkH at ActiveState.com]
Sent: Tuesday, June 20, 2000 12:52 PM
To: python-list at python.org
Subject: Re: win32all-132 / Word Automation
"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.
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list