[docs] [issue18676] Queue: document that zero is accepted as timeout value

Zhongyue Luo report at bugs.python.org
Wed Aug 7 23:47:28 CEST 2013


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 passing 0.0 as a timeout value.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18676>
_______________________________________


More information about the docs mailing list