[Python-checkins] cpython (merge 3.4 -> default): Merge from 3.4.
zach.ware
python-checkins at python.org
Thu May 7 03:20:21 CEST 2015
https://hg.python.org/cpython/rev/69e8ed66d4d6
changeset: 95904:69e8ed66d4d6
parent: 95902:5f2ae82157af
parent: 95903:d0f7eaf9aac7
user: Zachary Ware <zachary.ware at gmail.com>
date: Wed May 06 20:19:35 2015 -0500
summary:
Merge from 3.4.
files:
Doc/library/asyncio-sync.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -196,9 +196,9 @@
.. method:: notify_all()
- Wake up all threads waiting on this condition. This method acts like
- :meth:`notify`, but wakes up all waiting threads instead of one. If the
- calling thread has not acquired the lock when this method is called, a
+ Wake up all coroutines waiting on this condition. This method acts like
+ :meth:`notify`, but wakes up all waiting coroutines instead of one. If the
+ calling coroutine has not acquired the lock when this method is called, a
:exc:`RuntimeError` is raised.
.. method:: release()
@@ -250,7 +250,7 @@
A semaphore manages an internal counter which is decremented by each
:meth:`acquire` call and incremented by each :meth:`release` call. The
counter can never go below zero; when :meth:`acquire` finds that it is zero,
- it blocks, waiting until some other thread calls :meth:`release`.
+ it blocks, waiting until some other coroutine calls :meth:`release`.
Semaphores also support the context management protocol.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list