Still doing python scripting.

Gordon McMillan gmcm at hypernet.com
Thu Jun 8 22:15:54 EDT 2000


Arinté wrote:

>I have a question about scripting.  I have py embedded in my app and
>what I wanted to know should I do Py_Initialize and Py_Finalize after I
>run every script.  

No.

>I ask because after I run one script if there was an
>error, that same error is reposted when I run another script.  I capture
>the stderr and stdout and store it.

Did you try clearing it? PyErr_Clear, I think.

- Gordon



More information about the Python-list mailing list