commit | 0153159e67bf4247c4402a1a6e717819372c9337 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Mon Sep 17 03:28:34 2007 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Mon Sep 17 03:28:34 2007 +0000 |
tree | ef58a6813bfb4011b0cd542f250f292f8cba8076 | |
parent | d36a60e1e3410450d337d4de732e127e48a6a042 [diff] [blame] |
Add a bunch of GIL release/acquire points in tp_print implementations and for PyObject_Print(). Closes issue #1164.
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 4c5b37d..16786f8 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c
@@ -2241,7 +2241,9 @@ err_closed(); return -1; } + Py_BEGIN_ALLOW_THREADS fputs(s, fp); + Py_END_ALLOW_THREADS return 0; } else if (!PyErr_Occurred()) {