how to implement a queue-like container with sort function
cs at zip.com.au
Tue Dec 3 22:17:18 CET 2013
On 02Dec2013 07:26, Ned Batchelder <ned at nedbatchelder.com> wrote:
> Actually, I had a long conversation in the #python IRC channel with
> the OP at the same time he was posting the question here, and it
> turns out he knows exactly how many entries are going into the
> "queue", so a plain-old list is the best solution. I don't know
> quite where the idea of limiting the number of entries came from.
For me, it was because he said "fill the queue" in the OP. I took
that to imply that the queue had a capacity limit.
It's bubble, bubble, toil and trouble in conductive polymer.
- overhead by WIRED at the Intelligent Printing conference Oct2006
More information about the Python-list