[Python-Dev] Retrieve an arbitrary element from a set withoutremoving it (original) (raw)
geremy condra debatem1 at gmail.com
Tue Oct 27 19:20:04 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 ]
On Tue, Oct 27, 2009 at 1:59 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
Raymond Hettinger <python 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 ?
ugh- other spellings much preferred.
Geremy Condra
- 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 ]