[Python-Dev] Retrieve an arbitrary element from a set without removing it (original) (raw)

average dreamingforward at gmail.com
Wed Oct 28 17:22:46 CET 2009


[Guido wrote:]

- If sets were to grow an API to non-destructively access the object stored in the set for a particular key, then dicts should have such a method too. - I still wish we could go back in time and unify sets and dicts, if only to find out how that experiment would turn out.

+5. If Python3 were to have this feature it would make it worth migrating to (and nearly worthy of the intent that was behind the idea of python3k).

FWIW ... :)

marcos



More information about the Python-Dev mailing list