@@ -441,8 +441,8 @@ since it is impossible to detect the termination of alien threads.
441
441
442
442
.. attribute :: daemon
443
443
444
- A boolean value indicating whether this thread is a daemon thread (True)
445
- or not (False). This must be set before :meth: `~Thread.start ` is called,
444
+ A boolean value indicating whether this thread is a daemon thread (`` True `` )
445
+ or not (`` False `` ). This must be set before :meth: `~Thread.start ` is called,
446
446
otherwise :exc: `RuntimeError ` is raised. Its initial value is inherited
447
447
from the creating thread; the main thread is not a daemon thread and
448
448
therefore all threads created in the main thread default to
@@ -516,7 +516,7 @@ All methods are executed atomically.
516
516
value, block for at most the number of seconds specified by *timeout *
517
517
and as long as the lock cannot be acquired. A *timeout * argument of ``-1 ``
518
518
specifies an unbounded wait. It is forbidden to specify a *timeout *
519
- when *blocking * is false .
519
+ when *blocking * is `` False `` .
520
520
521
521
The return value is ``True `` if the lock is acquired successfully,
522
522
``False `` if not (for example if the *timeout * expired).
@@ -544,7 +544,7 @@ All methods are executed atomically.
544
544
545
545
.. method :: locked()
546
546
547
- Return true if the lock is acquired.
547
+ Return `` True `` if the lock is acquired.
548
548
549
549
550
550
@@ -593,17 +593,17 @@ Reentrant locks also support the :ref:`context management protocol <with-locks>`
593
593
is unlocked, only one at a time will be able to grab ownership of the lock.
594
594
There is no return value in this case.
595
595
596
- When invoked with the *blocking * argument set to true , do the same thing as when
596
+ When invoked with the *blocking * argument set to `` True `` , do the same thing as when
597
597
called without arguments, and return ``True ``.
598
598
599
- When invoked with the *blocking * argument set to false , do not block. If a call
599
+ When invoked with the *blocking * argument set to `` False `` , do not block. If a call
600
600
without an argument would block, return ``False `` immediately; otherwise, do the
601
601
same thing as when called without arguments, and return ``True ``.
602
602
603
603
When invoked with the floating-point *timeout * argument set to a positive
604
604
value, block for at most the number of seconds specified by *timeout *
605
605
and as long as the lock cannot be acquired. Return ``True `` if the lock has
606
- been acquired, false if the timeout has elapsed.
606
+ been acquired, `` False `` if the timeout has elapsed.
607
607
608
608
.. versionchanged :: 3.2
609
609
The *timeout * parameter is new.
@@ -844,7 +844,7 @@ Semaphores also support the :ref:`context management protocol <with-locks>`.
844
844
thread will be awoken by each call to :meth: `~Semaphore.release `. The
845
845
order in which threads are awoken should not be relied on.
846
846
847
- When invoked with *blocking * set to false , do not block. If a call
847
+ When invoked with *blocking * set to `` False `` , do not block. If a call
848
848
without an argument would block, return ``False `` immediately; otherwise, do
849
849
the same thing as when called without arguments, and return ``True ``.
850
850
0 commit comments