[Python-Dev] Retrieve an arbitrary element from a set withoutremoving it

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Nov 4 01:54:47 CET 2009


Steven D'Aprano wrote:

> I don't know how expensive it is to create a set iterator,

Not expensive enough to justify burdening the set type with
extra functionality that will be extremely rarely used.

-- 
Greg


More information about the Python-Dev mailing list