Arguments of function as out

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

In article <bj6l5v$3qg$06$1 at>,
 Birgit Rahm <br_y at> 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

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



 -- Duncan Grisby         --
  -- duncan at     --
   -- --

More information about the Python-list mailing list