Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5cf435

Browse files
committed
Nits
1 parent 5ace8e9 commit f5cf435

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

Doc/c-api/init.rst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ Initializing and finalizing the interpreter
1717
.. index::
1818
single: Py_SetProgramName()
1919
single: PyEval_InitThreads()
20-
single: PyEval_ReleaseLock()
21-
single: PyEval_AcquireLock()
2220
single: modules (in module sys)
2321
single: path (in module sys)
2422
module: builtins
@@ -32,8 +30,7 @@ Initializing and finalizing the interpreter
3230
Initialize the Python interpreter. In an application embedding Python, this
3331
should be called before using any other Python/C API functions; with the
3432
exception of :c:func:`Py_SetProgramName`, :c:func:`Py_SetPath`,
35-
:c:func:`PyEval_InitThreads`, :c:func:`PyEval_ReleaseLock`, and
36-
:c:func:`PyEval_AcquireLock`. This initializes
33+
and :c:func:`PyEval_InitThreads`. This initializes
3734
the table of loaded modules (``sys.modules``), and creates the fundamental
3835
modules :mod:`builtins`, :mod:`__main__` and :mod:`sys`. It also initializes
3936
the module search path (``sys.path``). It does not set ``sys.argv``; use
@@ -531,16 +528,15 @@ code, or when embedding the Python interpreter:
531528
.. c:function:: void PyEval_InitThreads()
532529
533530
.. index::
534-
single: PyEval_ReleaseLock()
531+
single: PyEval_AcquireThread()
535532
single: PyEval_ReleaseThread()
536533
single: PyEval_SaveThread()
537534
single: PyEval_RestoreThread()
538535
539536
Initialize and acquire the global interpreter lock. It should be called in the
540537
main thread before creating a second thread or engaging in any other thread
541-
operations such as :c:func:`PyEval_ReleaseLock` or
542-
``PyEval_ReleaseThread(tstate)``. It is not needed before calling
543-
:c:func:`PyEval_SaveThread` or :c:func:`PyEval_RestoreThread`.
538+
operations such as ``PyEval_ReleaseThread(tstate)``. It is not needed before
539+
calling :c:func:`PyEval_SaveThread` or :c:func:`PyEval_RestoreThread`.
544540
545541
.. index:: single: Py_Initialize()
546542
@@ -783,7 +779,7 @@ been created.
783779
If this thread already has the lock, a deadlock ensues.
784780
785781
.. deprecated:: 3.2
786-
This function does not change the current thread state. Please use
782+
This function does not update the current thread state. Please use
787783
:c:func:`PyEval_RestoreThread` or :c:func:`PyEval_AcquireThread`
788784
instead.
789785
@@ -793,7 +789,7 @@ been created.
793789
Release the global interpreter lock. The lock must have been created earlier.
794790
795791
.. deprecated:: 3.2
796-
This function does not change the current thread state. Please use
792+
This function does not update the current thread state. Please use
797793
:c:func:`PyEval_SaveThread` or :c:func:`PyEval_ReleaseThread`
798794
instead.
799795

0 commit comments

Comments
 (0)