Kaydet (Commit) ec9b7728 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

merge 3.4

...@@ -196,9 +196,9 @@ Condition ...@@ -196,9 +196,9 @@ Condition
.. method:: notify_all() .. method:: notify_all()
Wake up all threads waiting on this condition. This method acts like Wake up all coroutines waiting on this condition. This method acts like
:meth:`notify`, but wakes up all waiting threads instead of one. If the :meth:`notify`, but wakes up all waiting coroutines instead of one. If the
calling thread has not acquired the lock when this method is called, a calling coroutine has not acquired the lock when this method is called, a
:exc:`RuntimeError` is raised. :exc:`RuntimeError` is raised.
.. method:: release() .. method:: release()
...@@ -250,7 +250,7 @@ Semaphore ...@@ -250,7 +250,7 @@ Semaphore
A semaphore manages an internal counter which is decremented by each A semaphore manages an internal counter which is decremented by each
:meth:`acquire` call and incremented by each :meth:`release` call. The :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, 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. Semaphores also support the context management protocol.
......
...@@ -185,4 +185,4 @@ Examining Symbol Tables ...@@ -185,4 +185,4 @@ Examining Symbol Tables
.. method:: get_namespace() .. method:: get_namespace()
Return the namespace bound to this name. If more than one namespace is Return the namespace bound to this name. If more than one namespace is
bound, a :exc:`ValueError` is raised. bound, :exc:`ValueError` is raised.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment