41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
From: dkuhlman at netcom.com (G. David Kuhlman)
|
|
Date: Wed, 28 Apr 1999 15:24:46 GMT
|
|
Subject: Using Python for Modular Artificial Intelligence code
|
|
References: <newscache$bu0saf$a8n$1@news.tne.net.au>
|
|
Message-ID: <dkuhlmanFAwo5A.47I@netcom.com>
|
|
X-UID: 761
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|