| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | gh-116322: Add Py_mod_gil module slot (#116882) | Brett Simmers | 2024-05-03 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | This PR adds the ability to enable the GIL if it was disabled at interpreter startup, and modifies the multi-phase module initialization path to enable the GIL when loading a module, unless that module's spec includes a slot indicating it can run safely without the GIL. PEP 703 called the constant for the slot `Py_mod_gil_not_used`; I went with `Py_MOD_GIL_NOT_USED` for consistency with gh-104148. A warning will be issued up to once per interpreter for the first GIL-using module that is loaded. If `-v` is given, a shorter message will be printed to stderr every time a GIL-using module is loaded (including the first one that issues a warning). | ||||
| * | gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205) | Eric Snow | 2023-05-05 | 1 | -0/+1 |
| | | | | Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204). | ||||
| * | bpo-1635741: _contextvars uses PyModule_AddType() (GH-23147) | Victor Stinner | 2020-11-04 | 1 | -18/+3 |
| | | | | | | | Replace PyModule_AddObject() with PyModule_AddType() in the _contextvars module (Python-ast.c). Add also the module name to _contextvars types name. | ||||
| * | bpo-1635741: Port _contextvars module to multiphase initialization (PEP 489) ↵ | Hai Shi | 2020-02-17 | 1 | -26/+29 |
| | | | | | (GH-18374) | ||||
| * | bpo-38823: Clean up refleaks in _contextvars initialization. (GH-17198) | Brandt Bucher | 2019-11-16 | 1 | -0/+3 |
| | | | | https://bugs.python.org/issue38823 | ||||
| * | bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473) | Yury Selivanov | 2018-09-21 | 1 | -1/+1 |
| | | |||||
| * | bpo-32436: Implement PEP 567 (#5027) | Yury Selivanov | 2018-01-23 | 1 | -0/+75 |
