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/floatobject.c b/Objects/floatobject.c index 4dd7d03..bf9b172 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c
@@ -334,7 +334,9 @@ char buf[100]; format_float(buf, sizeof(buf), v, (flags & Py_PRINT_RAW) ? PREC_STR : PREC_REPR); + Py_BEGIN_ALLOW_THREADS fputs(buf, fp); + Py_END_ALLOW_THREADS return 0; }