Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: a9917bce4123ae1cf135d2a114e947cda4d4ee35 authored by cvs2svn on 28 September 2005, 03:38:39 UTC
This commit was manufactured by cvs2svn to create tag 'r242'.
Tip revision: a9917bc
importexc.c
#include <Python.h>

char* cmd = "import exceptions";

int main()
{
	Py_Initialize();
	PyEval_InitThreads();
	PyRun_SimpleString(cmd);
	Py_EndInterpreter(PyThreadState_Get());

	Py_NewInterpreter();
	PyRun_SimpleString(cmd);
	Py_Finalize();

	return 0;
}
back to top