On 18Jun2012 00:17, John O'Hagan <[email protected]> wrote: | On Sat, 16 Jun 2012 13:27:45 -0400 | Dennis Lee Bieber <[email protected]> wrote: | > Not "after each event is read" but when a new event is | > generated/inserted. The list is not a FIFO where new events are added to | > the end, but more of a priority queue where the lowest time is the next | > to be retrieved. | | You're right, of course.
Thought I'd point out that a heapq works nicely for this, or it has for me in this scenario , anyway. -- Cameron Simpson <[email protected]> -- http://mail.python.org/mailman/listinfo/python-list
