Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ec9b7728
Commit
ec9b7728
authored
May 06, 2015
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge 3.4
parents
fe373a54
ad643b59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Doc/library/asyncio-sync.rst
Doc/library/asyncio-sync.rst
+4
-4
Doc/library/symtable.rst
Doc/library/symtable.rst
+1
-1
No files found.
Doc/library/asyncio-sync.rst
View file @
ec9b7728
...
...
@@ -196,9 +196,9 @@ Condition
.. method:: notify_all()
Wake up all
thread
s waiting on this condition. This method acts like
:meth:`notify`, but wakes up all waiting
thread
s instead of one. If the
calling
thread
has not acquired the lock when this method is called, a
Wake up all
coroutine
s waiting on this condition. This method acts like
:meth:`notify`, but wakes up all waiting
coroutine
s 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.
...
...
Doc/library/symtable.rst
View file @
ec9b7728
...
...
@@ -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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment