[issue2149] Queue.maxsize, __init__() accepts any value as maxsize

Benjamin Peterson report at bugs.python.org
Sat Feb 23 20:56:59 CET 2008


Benjamin Peterson added the comment:

> The only "possible" problem I'm able to see is someone passing an object
wich has __int__() and expecting it to be used.
They should be explicit and say Queue(int(object_with__int__)).

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2149>
__________________________________


More information about the Python-bugs-list mailing list