diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-07 01:31:07 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-07 01:31:07 (GMT) |
commit | ec9b7728fe2f9314b2795573c1ffc12fe616900e (patch) | |
tree | b83b9519608a587137005b68c6af7ac5bfba6074 /Doc | |
parent | fe373a542559cf6f3a8e78322efeaa0a5bc94beb (diff) | |
parent | ad643b59ce5404fe5d7191fbbf99e2491d74779a (diff) | |
download | cpython-ec9b7728fe2f9314b2795573c1ffc12fe616900e.zip cpython-ec9b7728fe2f9314b2795573c1ffc12fe616900e.tar.gz cpython-ec9b7728fe2f9314b2795573c1ffc12fe616900e.tar.bz2 |
merge 3.4
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-sync.rst | 8 | ||||
-rw-r--r-- | Doc/library/symtable.rst | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 622ff5fd..7925731 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -196,9 +196,9 @@ Condition .. 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 @@ Semaphore 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. diff --git a/Doc/library/symtable.rst b/Doc/library/symtable.rst index a05b9e4..ba2caff 100644 --- a/Doc/library/symtable.rst +++ b/Doc/library/symtable.rst @@ -185,4 +185,4 @@ Examining Symbol Tables .. method:: get_namespace() Return the namespace bound to this name. If more than one namespace is - bound, a :exc:`ValueError` is raised. + bound, :exc:`ValueError` is raised. |