New submission from Zhongyue Luo:
The docstring of methods put() and get() in Queue.py states
get(): If 'timeout' is a positive number, it blocks at most 'timeout' seconds
and raises the Full exception if no free slot was available within that time.
put(): If 'time
Zhongyue Luo added the comment:
David,
How about like below?
elif timeout < sys.float_info.epsilon:
raise ValueError("'timeout' must be a positive number")
The docstring has been there for quite a while and IMHO it just doesn't make
sense pa
Changes by Zhongyue Luo :
--
keywords: +patch
Added file: http://bugs.python.org/file31187/queue_timeout_docstring.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Zhongyue Luo :
Added file: http://bugs.python.org/file31188/queue_timeout_docstring.patch
___
Python tracker
<http://bugs.python.org/issue18676>
___
___
Pytho
Changes by Zhongyue Luo :
Added file: http://bugs.python.org/file31189/queue_timeout_docstring.patch
___
Python tracker
<http://bugs.python.org/issue18676>
___
___
Pytho