Python and C
Diez B. Roggisch
deets at nospam.web.de
Fri Mar 10 15:36:50 CET 2006
diffuser78 at gmail.com wrote:
> I was a C Programmer for a while. Lately started to learn Python for
> one small project at school. I joined a small company where they use
> C++ for development.
> Can we use Python and C together ? I mean create some classes in Python
> and some number crunching algorithms coded in C (for speed) and
> integreate both of them.
> Could somebody just show a real small example or give pointers to the
There is even a whole section in the documentation geared towards that -
and to spoil the fun of actually reading it: Yes, Python and C go aleong
_very_ well, and for C++ there are several specialized wrapping generators
that e.g. make PyQt go round. Check out SIP or boost.python or SWIG.
More information about the Python-list