Changes by Mark Dickinson dicki...@gmail.com:
Removed file: http://bugs.python.org/file30019/issue17794.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: -mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
___
Daniel Wong added the comment:
btw, I have a related patch: http://bugs.python.org/issue17834 Chances of it
being accepted aren't looking good right now though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
Mark Dickinson added the comment:
Hmm. It's true that Python 3's comparison rules make PriorityQueue a bit less
useful in its current form.
One possible workaround could be to introduce an optional key argument to the
constructor that provides a callable used to map objects added to the
Mark Dickinson added the comment:
Example patch. Items with equal priority are retrieved in LIFO order.
--
keywords: +patch
Added file: http://bugs.python.org/file30017/issue17794.patch
___
Python tracker rep...@bugs.python.org
Changes by Mark Dickinson dicki...@gmail.com:
Added file: http://bugs.python.org/file30018/issue17794.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
Changes by Mark Dickinson dicki...@gmail.com:
Removed file: http://bugs.python.org/file30017/issue17794.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
Mark Dickinson added the comment:
Hmm. This looks like a duplicate of #7174.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
___
Mark Dickinson added the comment:
Fixed patch.
--
Added file: http://bugs.python.org/file30019/issue17794.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
Changes by Mark Dickinson dicki...@gmail.com:
Removed file: http://bugs.python.org/file30018/issue17794.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
Raymond Hettinger added the comment:
I'm working on this one. Expect a patch shortly.
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17794
___
Daniel Wong added the comment:
from the peanut gallery:
This looks right to me; you are seeing that PriorityQueue is trying to compare
dicts, because that's how tuple comparison works: it is lexicographic. Since
the first element of the two tuples that you are trying to insert have the same
New submission from Carlos Ferreira:
I'm using Priority Queues and followed the Python documentation for a simple
example.
From Queue documentation in Python 3.3
http://docs.python.org/3.3/library/queue.html
The lowest valued entries are retrieved first (the lowest valued entry is the
one
R. David Murray added the comment:
It is a bug of some sort. A doc bug if nothing else. This is probably due to
the fact that everything was sortable in python2, and the doc and/or code
hasn't been updated to account for the fact that many things aren't in Python3.
--
nosy:
14 matches
Mail list logo