[New-bugs-announce] [issue8830] Add nondestructive selection to sets

ipatrol report at bugs.python.org
Thu May 27 03:25:10 CEST 2010


New submission from ipatrol <ipatrol6010 at 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 <report at bugs.python.org>
<http://bugs.python.org/issue8830>
_______________________________________


More information about the New-bugs-announce mailing list