Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
Cpython
Commits
0fc3517c
Unverified
Commit
0fc3517c
authored
Apr 14, 2022
by
slateny
Committed by
GitHub
Apr 14, 2022
Browse files
Options
Downloads
Patches
Plain Diff
gh-90879: Fix missing parameter for put_nowait() (GH-91514)
parent
13b17e2a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Doc/library/queue.rst
+2
-2
2 additions, 2 deletions
Doc/library/queue.rst
Lib/queue.py
+1
-1
1 addition, 1 deletion
Lib/queue.py
with
3 additions
and
3 deletions
Doc/library/queue.rst
+
2
−
2
View file @
0fc3517c
...
@@ -138,7 +138,7 @@ provide the public methods described below.
...
@@ -138,7 +138,7 @@ provide the public methods described below.
.. method:: Queue.put_nowait(item)
.. method:: Queue.put_nowait(item)
Equivalent to ``put(item, False)``.
Equivalent to ``put(item,
block=
False)``.
.. method:: Queue.get(block=True, timeout=None)
.. method:: Queue.get(block=True, timeout=None)
...
@@ -248,7 +248,7 @@ SimpleQueue Objects
...
@@ -248,7 +248,7 @@ SimpleQueue Objects
.. method:: SimpleQueue.put_nowait(item)
.. method:: SimpleQueue.put_nowait(item)
Equivalent to ``put(item)``, provided for compatibility with
Equivalent to ``put(item
, block=False
)``, provided for compatibility with
:meth:`Queue.put_nowait`.
:meth:`Queue.put_nowait`.
...
...
This diff is collapsed.
Click to expand it.
Lib/queue.py
+
1
−
1
View file @
0fc3517c
...
@@ -298,7 +298,7 @@ def get(self, block=True, timeout=None):
...
@@ -298,7 +298,7 @@ def get(self, block=True, timeout=None):
def
put_nowait
(
self
,
item
):
def
put_nowait
(
self
,
item
):
'''
Put an item into the queue without blocking.
'''
Put an item into the queue without blocking.
This is exactly equivalent to `put(item)` and is only provided
This is exactly equivalent to `put(item
, block=False
)` and is only provided
for compatibility with the Queue class.
for compatibility with the Queue class.
'''
'''
return
self
.
put
(
item
,
block
=
False
)
return
self
.
put
(
item
,
block
=
False
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment