Arguments of function as out

Duncan Grisby duncan-news at grisby.org
Thu Sep 4 18:15:10 CEST 2003


In article <bj6l5v$3qg$06$1 at news.t-online.com>,
 Birgit Rahm <br_y at yahoo.de> wrote:

>I've already read this, but I hoped, there is a way to get these out
>parameters beside this.

Aside from all the help Alex has already given you, perhaps you should
have read the very next part of the specification, after the bit Piet
quoted. It says:

"""
Assuming the IDL definition

   interface I {
     oneway void stop();
     bool more_data();
     void get_data(out string name, out long age);
   };

a client could write

   names = {}
   while my_I.more_data():
       name,age = my_I.get_data()
       names[name] = age
   my_I.stop()
"""

I don't think it can get much clearer than that.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --




More information about the Python-list mailing list