mirror of
https://github.com/python/cpython.git
synced 2026-07-03 16:26:25 -04:00
[3.14] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) (GH-150473)
(cherry picked from commitcf73b17adf) (cherry picked from commit287c98f4cb)
This commit is contained in:
+4
-3
@@ -4328,13 +4328,14 @@ _imp.acquire_lock
|
||||
|
||||
Acquires the interpreter's import lock for the current thread.
|
||||
|
||||
This lock should be used by import hooks to ensure thread-safety when importing
|
||||
modules. On platforms without threads, this function does nothing.
|
||||
This lock should be used by import hooks to ensure thread-safety when
|
||||
importing modules. On platforms without threads, this function does
|
||||
nothing.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
_imp_acquire_lock_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=1aff58cb0ee1b026 input=4a2d4381866d5fdc]*/
|
||||
/*[clinic end generated code: output=1aff58cb0ee1b026 input=60e9c1b4ab471ead]*/
|
||||
{
|
||||
PyInterpreterState *interp = _PyInterpreterState_GET();
|
||||
_PyImport_AcquireLock(interp);
|
||||
|
||||
Reference in New Issue
Block a user