![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveGeneral questions about embedding Python.
From: amit <amit@digitalpeers.com>
Date: Mon Jul 04 2005 - 01:43:30 CEST
Hello,
I am currently studying how to embedd python. I am developing a
1) Is there a good text book or other resource on embedding/extending?
2) I have found that there are many ways to embedd a script:
3) Is there a problem with the PyRun_SimpleFile(). I am trying to run
const char *SCRIPT_NAME = "C:\\test_script.py";
int _tmain(int argc, _TCHAR* argv[])
FILE *script_file;
Py_Finalize();
return 0;
The python script has only one line: 'print "hello"'
I build it with Python2.3 libraries. When I try to run the code I get
4) What is the correct way to handle/catch python exceptions in the
Forgive me if I have asked too many questions in one eMail, it is
Thanks
|