[issue25009] queue.Queue() does not validate the maxsize argument

2015-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: The norm for pure python code is to duck type when objects are used rather than when they are passed in. The Queue module is very old and for the most part, its straight-forward design has worked out well (i.e. there aren't any real usability issues in

[issue25009] queue.Queue() does not validate the maxsize argument

2015-09-05 Thread Alex Willmer
New submission from Alex Willmer: The maxsize argument when initializing a Queue is expected to be an int (technically anything that can be compared to an int). However the class takes any value. In Python 3 this throws "TypeError: unorderable types" once e.g. .put() is called. On the basis