lists - append - unique and sorted
Neil Cerutti
horpner at yahoo.com
Wed Jun 6 11:37:55 EDT 2007
On 2007-06-06, rhXX <rh00667 at gmail.com> wrote:
> hi,
>
> can i append a item to a list using criterias:
>
> - UNIQUE - if there already exist don't append
Consult the Python Docs about sets.
> and/or
>
> - SORTED - INSERT in the correct place using some criteria?
Consult the Python Docs about the heapq module.
--
Neil Cerutti
Beethoven wrote fewer symphonies than Haydn and Mozart because he wrote
longer, and besides he went death. --Music Lit Essay
More information about the Python-list
mailing list