@@ -428,8 +428,8 @@ since it is impossible to detect the termination of alien threads.
428
428
429
429
.. attribute :: daemon
430
430
431
- A boolean value indicating whether this thread is a daemon thread (True)
432
- or not (False). This must be set before :meth: `~Thread.start ` is called,
431
+ A boolean value indicating whether this thread is a daemon thread (`` True `` )
432
+ or not (`` False `` ). This must be set before :meth: `~Thread.start ` is called,
433
433
otherwise :exc: `RuntimeError ` is raised. Its initial value is inherited
434
434
from the creating thread; the main thread is not a daemon thread and
435
435
therefore all threads created in the main thread default to
@@ -503,7 +503,7 @@ All methods are executed atomically.
503
503
value, block for at most the number of seconds specified by *timeout *
504
504
and as long as the lock cannot be acquired. A *timeout * argument of ``-1 ``
505
505
specifies an unbounded wait. It is forbidden to specify a *timeout *
506
- when *blocking * is false .
506
+ when *blocking * is `` False `` .
507
507
508
508
The return value is ``True `` if the lock is acquired successfully,
509
509
``False `` if not (for example if the *timeout * expired).
@@ -531,7 +531,7 @@ All methods are executed atomically.
531
531
532
532
.. method :: locked()
533
533
534
- Return true if the lock is acquired.
534
+ Return `` True `` if the lock is acquired.
535
535
536
536
537
537
@@ -580,17 +580,17 @@ Reentrant locks also support the :ref:`context management protocol <with-locks>`
580
580
is unlocked, only one at a time will be able to grab ownership of the lock.
581
581
There is no return value in this case.
582
582
583
- When invoked with the *blocking * argument set to true , do the same thing as when
583
+ When invoked with the *blocking * argument set to `` True `` , do the same thing as when
584
584
called without arguments, and return ``True ``.
585
585
586
- When invoked with the *blocking * argument set to false , do not block. If a call
586
+ When invoked with the *blocking * argument set to `` False `` , do not block. If a call
587
587
without an argument would block, return ``False `` immediately; otherwise, do the
588
588
same thing as when called without arguments, and return ``True ``.
589
589
590
590
When invoked with the floating-point *timeout * argument set to a positive
591
591
value, block for at most the number of seconds specified by *timeout *
592
592
and as long as the lock cannot be acquired. Return ``True `` if the lock has
593
- been acquired, false if the timeout has elapsed.
593
+ been acquired, `` False `` if the timeout has elapsed.
594
594
595
595
.. versionchanged :: 3.2
596
596
The *timeout * parameter is new.
@@ -831,7 +831,7 @@ Semaphores also support the :ref:`context management protocol <with-locks>`.
831
831
thread will be awoken by each call to :meth: `~Semaphore.release `. The
832
832
order in which threads are awoken should not be relied on.
833
833
834
- When invoked with *blocking * set to false , do not block. If a call
834
+ When invoked with *blocking * set to `` False `` , do not block. If a call
835
835
without an argument would block, return ``False `` immediately; otherwise, do
836
836
the same thing as when called without arguments, and return ``True ``.
837
837
0 commit comments