Author asuiu
Recipients asuiu
Date 2009-10-20.10:21:49
SpamBayes Score 0.00271975
Marked as misclassified No
Message-id <1256034111.78.0.486242664983.issue7174@psf.upfronthosting.co.za>
In-reply-to
Content
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:
builtins.TypeError: unorderable types: Crawler() < Crawler()
File "d:\work\python\gglcrwl.py", line 89, in <module>
  crawlGroup.Process()
File "d:\work\python\GglCrwLib.py", line 1056, in Process
  globs.linksQueue.put((globs.cDefLinkPriority,
Crawler(u.title_url,ca)),True)
File "C:\Program Files\Python31\Lib\queue.py", line 153, in put
  self._put(item)
File "C:\Program Files\Python31\Lib\queue.py", line 242, in _put
  heappush(self.queue, item)
History
Date User Action Args
2009-10-20 10:21:52asuiusetrecipients: + asuiu
2009-10-20 10:21:51asuiusetmessageid: <1256034111.78.0.486242664983.issue7174@psf.upfronthosting.co.za>
2009-10-20 10:21:49asuiulinkissue7174 messages
2009-10-20 10:21:49asuiucreate