Browse Source
bpo-40234: Revert "bpo-37266: Daemon threads are now denied in subinterpreters (GH-14049)" (GH-19456)
bpo-40234: Revert "bpo-37266: Daemon threads are now denied in subinterpreters (GH-14049)" (GH-19456)
This reverts commit 066e5b1a91.
pull/19494/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 91 deletions
-
8Doc/library/threading.rst
-
9Doc/whatsnew/3.9.rst
-
42Lib/test/test_threading.py
-
5Lib/threading.py
-
2Misc/NEWS.d/next/Library/2020-04-10-16-13-47.bpo-40234.tar4d_.rst
-
24Modules/_threadmodule.c
-
22Modules/clinic/_threadmodule.c.h
@ -0,0 +1,2 @@ |
|||
Allow again to spawn daemon threads in subinterpreters (revert change which |
|||
denied them). |
|||
@ -1,22 +0,0 @@ |
|||
/*[clinic input] |
|||
preserve |
|||
[clinic start generated code]*/ |
|||
|
|||
PyDoc_STRVAR(_thread__is_main_interpreter__doc__, |
|||
"_is_main_interpreter($module, /)\n" |
|||
"--\n" |
|||
"\n" |
|||
"Return True if the current interpreter is the main Python interpreter."); |
|||
|
|||
#define _THREAD__IS_MAIN_INTERPRETER_METHODDEF \ |
|||
{"_is_main_interpreter", (PyCFunction)_thread__is_main_interpreter, METH_NOARGS, _thread__is_main_interpreter__doc__}, |
|||
|
|||
static PyObject * |
|||
_thread__is_main_interpreter_impl(PyObject *module); |
|||
|
|||
static PyObject * |
|||
_thread__is_main_interpreter(PyObject *module, PyObject *Py_UNUSED(ignored)) |
|||
{ |
|||
return _thread__is_main_interpreter_impl(module); |
|||
} |
|||
/*[clinic end generated code: output=505840d1b9101789 input=a9049054013a1b77]*/ |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue