Mercurial > cpython-lru_cache-weakref
diff Objects/floatobject.c @ 43378:7630248b593c legacy-trunk
Add a bunch of GIL release/acquire points in tp_print implementations and for
PyObject_Print().
Closes issue #1164.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Mon, 17 Sep 2007 03:28:34 +0000 |
| parents | 6620a510e9a9 |
| children | c218d1ac916e |
line wrap: on
line diff
--- a/Objects/floatobject.c Mon Sep 17 00:55:00 2007 +0000 +++ b/Objects/floatobject.c Mon Sep 17 03:28:34 2007 +0000 @@ -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; }
