• Advertisement

Archived

This topic is now archived and is closed to further replies.

Embedding Python into game engines.

This topic is 5842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
According to Guido, from a question by me:

> Hello Guido, how exactly do I call Python functions from C/C++?

One way is to pass a Python expression or statement to one of the
functions documented here:

http://www.python.org/doc/current/api/veryhigh.html

Note that you can''t in general get a result back with these APIs.

You can also use the PyObject_Call* functions from this page:

http://www.python.org/doc/current/api/object.html

--Guido van Rossum (home page: http://www.python.org/~guido/)

Share this post


Link to post
Share on other sites

  • Advertisement