Pyrex

Laura Creighton lac at strakt.com
Thu Dec 26 06:57:36 EST 2002


>   Bonjour,
>    
>   Il semble que Pyrex :
> 
>      - ne soit pas compatible python,
> 
>      - permette d'appeler aisément le C depuis python, mais c'est déjà ce que 
> je fais. Je désire faire le contraire, c'est à dire récupérer des données 
> python depuis le C. 
> 
>    Qu'en pensez-vous ?
> 
>     Cordialement
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list

My French isn't up to a reply in French.  But if what you want to do is
embed Python in your C application, then what you need to read is
http://www.python.org/doc/current/ext/ext.html -- section 5, embedding.
I don't know of any French translations. http://www.mcmillan-inc.com/embed.html
will also help.  What is probably easiest is to go to www.boost.org and
check out the Python library. http://www.boost.org/libs/python/doc/index.html

There is also swig http://www.swig.org/  I've never used it, and I don't
know why you would use it other than boost, but somebody here should know.

Good luck,
Laura Creighton





More information about the Python-list mailing list