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

Steven D'Aprano steve at pearwood.info
Sun Jul 19 04:14:14 CEST 2009


On Sun, 19 Jul 2009 11:44:00 am Mathias Panzenböck wrote:

> I always thought it's odd that pythons list has append but
> the set class has the method add. Whats the reason for that anyway?

You can't append an item to the end of the set, because sets don't have 
an end. They're unordered.


-- 
Steven D'Aprano



More information about the Python-ideas mailing list