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

Benjamin Peterson report at bugs.python.org
Thu Feb 21 17:59:49 CET 2008


Benjamin Peterson added the comment:

Maybe, we should change change the constructor to use self.maxsize =
int(maxsize). Then we can provide a set_maxsize method that will acquire
the mutex and preform the change. This is will restrict the type of
maxsize and allow for easy dynamic changing.

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


More information about the Python-bugs-list mailing list