[Python-Dev] Retrieve an arbitrary element from a set without removing it
Florian Weimer
fw at deneb.enyo.de
Sun Oct 25 18:57:07 CET 2009
More information about the Python-Dev mailing list
Sun Oct 25 18:57:07 CET 2009
- Previous message: [Python-Dev] Retrieve an arbitrary element from a set without removing it
- Next message: [Python-Dev] Retrieve an arbitrary element from a set without removing it
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
* James Y. Knight: > On Oct 25, 2009, at 2:50 AM, Terry Reedy wrote: > >> Alex Martelli wrote: >>> Next(s) would seem good... >> >> That does not work. It has to be next(iter(s)), and that has been >> tried and eliminated because it is significantly slower. > > But who cares about the speed of getting an arbitrary element from a > set? How can it *possibly* be a problem in a real program? Hmm, perhaps when using sets as work queues?
- Previous message: [Python-Dev] Retrieve an arbitrary element from a set without removing it
- Next message: [Python-Dev] Retrieve an arbitrary element from a set without removing it
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list