Exception Handling in Embedded/Extended Python

David J. Huntbach davidh at alphasmart.com
Mon May 21 20:14:29 EDT 2001


I'm both Embedding and Extending Python as the interpreter for a
Windows-based script file harness. I'm calling PyRun_File and it works
great, except when there's an error in the script being run (PyRun_File
returns NULL). In those cases, PyErr_Fetch is called, but the
"ptraceback" parm never gets a value.

Configuration: WIntel Hardware, Windows 2000 OS, Python 2.0.

Many Thanks!
David
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
David J. Huntbach,
Manager, Orem Engineering Office,
Senior Engineer

AlphaSmart, Inc.
1160 South State Street
Suite 250
Orem, UT 84097

(801) 426-7739
davidh at alphasmart.com





More information about the Python-list mailing list