which datastructure for fast sorted insert?

Terry Reedy tjreedy at udel.edu
Sun May 25 12:59:17 EDT 2008


"Rares Vernica" <rares at ics.uci.edu> wrote in message 
news:y1r1w3qan3p.fsf at ics.uci.edu...
| >>> l=list(s)
| >>> l.sort()

This can be condensed to l = sorted(s)

| >>> l
| ['a', 'b', 'c']






More information about the Python-list mailing list