<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2516.1900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>i have a question. i am new to python and am trying 
to use it as a scripting language for a game i am working on. I have the 
interpreter embedded and running scripts but i have a few 
questions.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1) can i return values from the python script to 
the C/C++ program?</FONT></DIV>
<DIV><FONT face=Arial size=2>for example say at the end of my script, it 
returned 'character' and character was equal to say 'hi'</FONT></DIV>
<DIV><FONT face=Arial size=2>now is there anyway my C/C++ program could find out 
that the script just returned the value 'hi'?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>2) is there anyway I can pass values from the C/C++ 
program into the python script?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>and</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>3) say i had a python script that had several 
functions (defs). is there anyway i could call just one of these defs from the 
C/C++ program without calling the entire script?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks for your help</FONT></DIV></BODY></HTML>