Pyrex

fcabaud at free.fr fcabaud at free.fr
Mon Dec 30 12:14:38 EST 2002


  Hello,

  I would like to get from python to C:
    one string + 2 lists of strings.
  The code in python which return these data is easy to write.
  The code in C to get the data is difficult to write.

  In what way, pyrex could simplify my life ?

  Regards


----- Original Message -----
From: "François Pinard" <pinard at iro.umontreal.ca>
To: "Bayard" <fcabaud at free.fr>
Cc: <python-list at python.org>
Sent: Tuesday, December 24, 2002 6:29 PM
Subject: Re: Appel de python depuis le C


[Bayard]

> J'amerais  partir du C
> -  mettre une requête vers python [...],
> - recevoir les rsultats de ma requ te [...],
> - que python conserve son contexte entre deux requêtes
> Peut-tre n'est tout simplement pas possible...

Il y a plusieurs avenues pour r aliser ça.  Personnellement, je trouve Pyrex
à la fois brillant et simple pour les problèmes de communication C vers
Python, et vice-versa.  Pour plus d'information, voir:

   http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/

--
François Pinard   http://www.iro.umontreal.ca/~pinard





More information about the Python-list mailing list