fixed python GIL reacquire in case of exception

This commit is contained in:
Alexander Mordvintsev
2012-03-10 05:56:40 +00:00
parent 466345e936
commit f6fec7ad2f
2 changed files with 14 additions and 20 deletions

View File

@@ -19,10 +19,7 @@ gen_template_parse_args = Template("""const char* keywords[] = { $kw_list, NULL
gen_template_func_body = Template("""$code_decl
$code_parse
{
{
PyAllowThreads allow;
$code_fcall;
}
$code_fcall;
$code_ret;
}
""")