Exception Handling in Embedded/Extended Python

David J. Huntbach davidh at alphasmart.com
Tue May 22 02:14:29 CEST 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 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