[Python-Dev] Retrieve an arbitrary element from a set withoutremoving it
Antoine Pitrou
solipsis at pitrou.net
Tue Oct 27 18:59:00 CET 2009
More information about the Python-Dev mailing list
Tue Oct 27 18:59:00 CET 2009
- Previous message: [Python-Dev] Retrieve an arbitrary element from a set withoutremoving it
- Next message: [Python-Dev] Retrieve an arbitrary element from a set withoutremoving it
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Raymond Hettinger <python <at> rcn.com> writes: > > [Chris Bergstresser] > Still, I think my > > point stands--it's a clear extrapolation from the existing dict.get(). > > Not really. One looks-up a key and supplies a default value if not found. > The other, set.get(), doesn't have a key to lookup. set.getone() then ?
- Previous message: [Python-Dev] Retrieve an arbitrary element from a set withoutremoving it
- Next message: [Python-Dev] Retrieve an arbitrary element from a set withoutremoving it
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list