A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-November/093814.html below:

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

[Python-Dev] Retrieve an arbitrary element from a setwithoutremoving it [Python-Dev] Retrieve an arbitrary element from a setwithoutremoving itRaymond Hettinger python at rcn.com
Thu Nov 5 23:30:56 CET 2009
[Chris Bergstresser]
 > Clearly, I'll need to write up the PEP.

Why not write a short, fast get_first() function for your utils directory and be done with it?
That could work with sets, mappings, generators, and other containers and iterators.
No need to fatten the set/frozenset API for something so trivial and so rarely needed.


Raymond
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4