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

Amaury Forgeot d'Arc report at bugs.python.org
Thu Feb 21 09:40:01 CET 2008


Amaury Forgeot d'Arc added the comment:

What about requiring maxsize to be convertible to an int?
This would allow dynamic objects, if they define an __int__ method.
I join a patch.

----------
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file9473/queue_maxsize_2.diff

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


More information about the Python-bugs-list mailing list