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

Skip to content

Commit f285bcc

Browse files
committed
Be consistent in the spelling of thread-safe(ty).
1 parent 6dbed2e commit f285bcc

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/c-api/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ Thread State and the Global Interpreter Lock
437437
single: interpreter lock
438438
single: lock, interpreter
439439
440-
The Python interpreter is not fully thread safe. In order to support
440+
The Python interpreter is not fully thread-safe. In order to support
441441
multi-threaded Python programs, there's a global lock, called the :dfn:`global
442442
interpreter lock` or :dfn:`GIL`, that must be held by the current thread before
443443
it can safely access Python objects. Without the lock, even the simplest

Doc/library/locale.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The :mod:`locale` module defines the following exception and functions:
3939
If *locale* is omitted or ``None``, the current setting for *category* is
4040
returned.
4141

42-
:func:`setlocale` is not thread safe on most systems. Applications typically
42+
:func:`setlocale` is not thread-safe on most systems. Applications typically
4343
start with a call of ::
4444

4545
import locale

Doc/library/multiprocessing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ However, if you really do need to use some shared data then
214214
The ``'d'`` and ``'i'`` arguments used when creating ``num`` and ``arr`` are
215215
typecodes of the kind used by the :mod:`array` module: ``'d'`` indicates a
216216
double precision float and ``'i'`` indicates a signed integer. These shared
217-
objects will be process and thread safe.
217+
objects will be process and thread-safe.
218218

219219
For more flexibility in using shared memory one can use the
220220
:mod:`multiprocessing.sharedctypes` module which supports the creation of

Doc/library/runpy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The :mod:`runpy` module provides two functions:
120120

121121
Note that, unlike :func:`run_module`, the alterations made to :mod:`sys`
122122
are not optional in this function as these adjustments are essential to
123-
allowing the execution of sys.path entries. As the thread safety
123+
allowing the execution of sys.path entries. As the thread-safety
124124
limitations still apply, use of this function in threaded code should be
125125
either serialised with the import lock or delegated to a separate process.
126126

Doc/library/threading.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,9 @@ Currently, :class:`Lock`, :class:`RLock`, :class:`Condition`,
789789
Importing in threaded code
790790
--------------------------
791791

792-
While the import machinery is thread safe, there are two key
793-
restrictions on threaded imports due to inherent limitations in the way
794-
that thread safety is provided:
792+
While the import machinery is thread-safe, there are two key restrictions on
793+
threaded imports due to inherent limitations in the way that thread-safety is
794+
provided:
795795

796796
* Firstly, other than in the main module, an import should not have the
797797
side effect of spawning a new thread and then waiting for that thread in

0 commit comments

Comments
 (0)