New submission from ipatrol <ipatrol6...@yahoo.com>:

I see in a lot of references for computer programming a function that returns 
an arbitrary value from a standard or frozen set. 
http://en.wikipedia.org/wiki/Set_%28computer_science%29 describes it as pick. 
It surprised me when I discovered that Python sets don't have this method. I 
would suggest the returned value be somewhat random to prevent repeated calls 
from returning repeated results. Perhaps a small C-level counter could control 
that, which can then roll over uneventfully if enough calls are made.

----------
components: None
messages: 106590
nosy: ipatrol
priority: normal
severity: normal
status: open
title: Add nondestructive selection to sets
type: feature request
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8830>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to