---259931839-602644157-1106844967262
Content-Type: MULTIPART/MIXED; BOUNDARY="-259931839-602644157-1106844967=:1262"

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---259931839-602644157-1106844967262
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

I am quite new to extending Ruby, and I have read the README.EXT.
I am wondering how to translate (from the code below): 
"PyList_SetItem($result, i, PyFloat_FromDouble((double) p(i+1)));"
Into Extending Ruby syntax.


(This code is used for typemapping in SWIG/Python)
%typemap(out) Ptv_double& {
   Ptv_double& p= (*$1);
    int size = p.size();
    $result = PyList_New(size);
    for (int i=0; i<size; i++)
       PyList_SetItem($result, i, PyFloat_FromDouble((double) p(i+1)));
}

Can anyone please help ?



</asbj°˛n>































---259931839-602644157-1106844967262--
---259931839-602644157-1106844967262--