Using Python for Modular Artificial Intelligence code

G. David Kuhlman dkuhlman at netcom.com
Wed Apr 28 11:24:46 EDT 1999


Tim Auld <astro at nospam.tne.net.au> wrote:
> Hi all,

...

> My question is, how can I load the Python script, let my C++ object call
> functions within the Python script, and provide a callback for the Python
> script to call methods in the C++ object?

Get the Python documentation at http://www.python.org/doc, then
look at the sections on "Extending and Embedding" and "Python/C
API".  There is lot's there on this topic.

Also download the Python source distribution.  In the demo
directory you will find an example on embedding.  Play with and
expand on that to learn how to do it yourself.

Then ask some more questions on this news group.

  - Dave

  - Dave

> ________________________
> astro at tne.net.au
> tim at ratbaggames.com







More information about the Python-list mailing list