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
ee8f773c
Commit
ee8f773c
authored
Aug 10, 2013
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Plain Diff
Issue #18676: Merge from 3.3
parents
b723a12c
7608b607
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
Lib/queue.py
Lib/queue.py
+4
-4
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+4
-1
No files found.
Lib/queue.py
View file @
ee8f773c
...
...
@@ -120,7 +120,7 @@ class Queue:
If optional args 'block' is true and 'timeout' is None (the default),
block if necessary until a free slot is available. If 'timeout' is
a
posi
tive number, it blocks at most 'timeout' seconds and raises
a
non-nega
tive number, it blocks at most 'timeout' seconds and raises
the Full exception if no free slot was available within that time.
Otherwise ('block' is false), put an item on the queue if a free slot
is immediately available, else raise the Full exception ('timeout'
...
...
@@ -135,7 +135,7 @@ class Queue:
while
self
.
_qsize
()
>=
self
.
maxsize
:
self
.
not_full
.
wait
()
elif
timeout
<
0
:
raise
ValueError
(
"'timeout' must be a
posi
tive number"
)
raise
ValueError
(
"'timeout' must be a
non-nega
tive number"
)
else
:
endtime
=
time
()
+
timeout
while
self
.
_qsize
()
>=
self
.
maxsize
:
...
...
@@ -152,7 +152,7 @@ class Queue:
If optional args 'block' is true and 'timeout' is None (the default),
block if necessary until an item is available. If 'timeout' is
a
posi
tive number, it blocks at most 'timeout' seconds and raises
a
non-nega
tive number, it blocks at most 'timeout' seconds and raises
the Empty exception if no item was available within that time.
Otherwise ('block' is false), return an item if one is immediately
available, else raise the Empty exception ('timeout' is ignored
...
...
@@ -166,7 +166,7 @@ class Queue:
while
not
self
.
_qsize
():
self
.
not_empty
.
wait
()
elif
timeout
<
0
:
raise
ValueError
(
"'timeout' must be a
posi
tive number"
)
raise
ValueError
(
"'timeout' must be a
non-nega
tive number"
)
else
:
endtime
=
time
()
+
timeout
while
not
self
.
_qsize
():
...
...
Misc/ACKS
View file @
ee8f773c
...
...
@@ -773,6 +773,7 @@ Ray Loyzaga
Lukas Lueg
Loren Luke
Fredrik Lundh
Zhongyue Luo
Mark Lutz
Taras Lyapun
Jim Lynch
...
...
Misc/NEWS
View file @
ee8f773c
...
...
@@ -24,6 +24,9 @@ Core and Builtins
Library
-------
- Issue #18676: Change '
positive
' to '
non
-
negative
' in queue.py put and get
docstrings and ValueError messages. Patch by Zhongyue Luo
- Issue #8112: xlmrpc.server'
s
DocXMLRPCServer
server
no
longer
raises
an
error
if
methods
have
annotations
;
it
now
correctly
displays
the
annotations
.
...
...
@@ -821,7 +824,7 @@ Windows
Build
-----
- Issue #16067: Add description into MSI file to replace installer'
s
- Issue #16067: Add description into MSI file to replace installer'
s
temporary
name
.
-
Issue
#
18257
:
Fix
readlink
usage
in
python
-
config
.
Install
the
python
...
...
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