repo.or.cz
/
python.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove the check that classmethod's argument is a callable
[python.git]
/
Demo
/
embed
/
importexc.c
blob
375ce1b686954efb15b2e813385b957b297a2c3d
1
#include <Python.h>
2
3
char
*
cmd
=
"import exceptions"
;
4
5
int
main
()
6
{
7
Py_Initialize
();
8
PyEval_InitThreads
();
9
PyRun_SimpleString
(
cmd
);
10
Py_EndInterpreter
(
PyThreadState_Get
());
11
12
Py_NewInterpreter
();
13
PyRun_SimpleString
(
cmd
);
14
Py_Finalize
();
15
16
return
0
;
17
}