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

Oleg Broytman phd at phd.pp.ru
Tue Oct 27 19:30:30 CET 2009


On Tue, Oct 27, 2009 at 02:20:04PM -0400, geremy condra wrote:
> On Tue, Oct 27, 2009 at 1:59 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> > Raymond Hettinger <python <at> rcn.com> writes:
> > set.getone() then ?
> 
> ugh- other spellings much preferred.

   set[] ? (Just kidding, really.)

Oleg.
-- 
     Oleg Broytman            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list