win32com parameters

Alberto Rodriguez x at x.com
Mon Oct 29 16:02:47 CET 2001


Hi:

>>> print ox.primero
answer with: number1 (the correct answer)

but when i send a parameter

>>> print ox.primero('1')

I have this error:

Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
TypeError: object of type 'unicode' is not callable
>>>

TIA

> Alberto: are you sure that primero IS a method? The error message seems to
> imply it is an attribute, or property.
>
> Try:
>
> import win32com.client
> ox = win32com.client.Dispatch("proy1.miclase")
> print ox.primero
>
> to find out what datatype you are dealing with.
>
> regards
>  Steve
> --
> http://www.holdenweb.com/
>
>
>
>
>







More information about the Python-list mailing list