[issue7174] modeule: queue class: PriorityQueue

2009-10-20 Thread R. David Murray
R. David Murray added the comment: In python3 (unlike 2) objects are by default unorderable. You'll need to define an ordering for your objects in order to use them in a PriorityQueue, whether or not they are inside a tuple. -- nosy: +r.david.murray priority: -> normal resolution: ->

[issue7174] modeule: queue class: PriorityQueue

2009-10-20 Thread Andrew Shuiu
New submission from Andrew Shuiu : Puting 2 tuples like (100, data1), (100, data2) in a PriorityQueue generates an builtins.TypeError: unorderable types: data1 < data2 Code which generates error: theQueue.put((100, object1()),True) theQueue.put((100, object1()),True) Snippet from error: builtin