[C++-sig] The easiest way to evoke a python function from a C++ application...?

Aleksandar Fabijanic aleskx at yahoo.com
Fri Feb 20 14:27:57 CET 2004


http://www.python.org/doc/current/ext/callingPython.html

Alex

--- Billy Gnosis <sirbender at freenet.de> wrote:
> What is the easiest way to evoke a python function
> from a C++ application ?
> 
> I just want it for testing reasons and perhaps use
> it as a new way to 
> develop software.
> 
> I am new into python, but admire the fast and easy
> way to write code.
> 
> Actually I planned to set up most of the program in
> C++ in a more or 
> less complete way - this should be quickly possible
> by using Python 
> functions, that are later replaced by C code when
> the "design" of the 
> program is ok.
> 
> So I just want to call e.g. a python function
> string.split(...) and 
> return an array of strings to the C-Program. How is
> this most easily 
> done ? It can be very 'dirty' as it will be replaced
> later anyway. Does 
> somebody has example code?
> 
> Cheers,
> 
> sb
> 
> 
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools




More information about the Cplusplus-sig mailing list