[issue21723] Float maxsize is treated as infinity in asyncio.Queue

Vajrasky Kok report at bugs.python.org
Thu Jun 12 18:08:07 CEST 2014


Vajrasky Kok added the comment:

"It looks strange to use a float as maxsize." => It is. But the float could be coming programmatically. Float value interpreted as infinity could give a shock for some people.

"maybe to cast maxsize parameter to an int." => ceiling or flooring?

----------

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


More information about the Python-bugs-list mailing list