[Python-ideas] Proposal for extending the collections module - bags / multisets, ordered sets / unique lists

Mart Sõmermaa mrts.pydev at gmail.com
Sat Jul 18 20:03:47 CEST 2009


I drove a similar discussion a few months ago (April or May), nobody
was opposing then, so I'd say go ahead and file a feature request.

Of course, I'm personally strongly +1, especially for ordered set/unique list.

Various implementations:

http://code.activestate.com/recipes/576694/
http://www.peterbe.com/plog/uniqifiers-benchmark/

A list with no duplicate values is a common problem judging on the following:

http://www.google.com/codesearch?q=lang%3Apython+list+unique
http://www.google.com/codesearch?q=lang%3Apython+list+duplicates
http://code.activestate.com/recipes/52560/
http://www.google.com/search?q=python+unique+list



More information about the Python-ideas mailing list