Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: f7adf2f473966ef33f6079ceb7115cb6cde3b521 authored by cvs2svn on 08 September 2001, 21:38:26 UTC
This commit was manufactured by cvs2svn to create tag 'r22a3'.
Tip revision: f7adf2f
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