[Python-ideas] get method for sets?

Mike Meyer mwm at mired.org
Wed May 16 10:12:38 CEST 2012


On Wed, 16 May 2012 17:39:10 +1000
Ben Finney <ben+python at benfinney.id.au> wrote:
> If by “get” you mean to get an *arbitrary* item, not a specific item,
> then what's the problem? You already have ‘set.pop’, as you point out.

And, as I also pointed out, it's not useful in the case where you need
to preserve the set for future use.

   <mike
-- 
Mike Meyer <mwm at mired.org>		http://www.mired.org/
Independent Software developer/SCM consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the Python-ideas mailing list