No trees in the stdlib?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Wed Jul 1 04:39:06 EDT 2009

In message <mailman.2140.1245996088.8015.python-list at>, João 
Valverde wrote:

> Simple example usage case: Insert string into data structure in sorted
> order if it doesn't exist, else retrieve it.

    the_set = set( ... )

    if str in the_set :
        ... "retrieval" case ...
    else :
    #end if

Want sorted order?


What could be simpler?

More information about the Python-list mailing list