Neil Cerutti wrote: > On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote: >> and/or >> >> - SORTED - INSERT in the correct place using some criteria? > > Consult the Python Docs about the heapq module.
Heaps (as produced by heapq) are not sorted. This will not produce correct results unless one then pops everything and de-dupes the output. As Diez has already said, 'use the bisect module' . - Josiah -- http://mail.python.org/mailman/listinfo/python-list