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

Raymond Hettinger python at rcn.com
Wed Nov 4 07:35:57 CET 2009

> Personally, I have found it useful in doco I write to have a section on
> "Common Tasks", with recommended/suggested examples of how to do them and
> short rationale for the chosen method. It seems to me that if .pick()
> is frequently desired and "None of the standard solutions are obvious
> or easily discoverable" then they should be _made_ so with documentation.
> Comments?

That's reasonable.  It's in the same category as people who can't figure-out how to clear a list because they forgot about slice 


More information about the Python-Dev mailing list