ValueError: unpack tuple of wrong size???

Dag Sunde dag at orion.no
Fri May 19 05:41:34 EDT 2000


I have a Corba-idl, defining a method like this:

    boolean LoginToMarket
    (
        out long lLoginId,
        out Object supplier)
        raises (NoAccess);

I call it like this:
    ...
    self.loginId, self.Supplier = self.m_pElTermin.LoginToMarket()
    ...

... and get this error:

File
"D:\DevRoot\src\Products\Scripts\Python\TsProWrappers\main\ElTerminMarke
t.py", line 22, in LogIn
    self.loginId, self.Supplier = self.m_pElTermin.LoginToMarket()
ValueError: unpack tuple of wrong size


Question:
    When a method has a boolean return, and two output-params, how do I
    call it?

TIA...

Dag Sunde






More information about the Python-list mailing list