This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gaul
Recipients
Date 2001-07-14.22:35:38
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=139865

Here's a function that gives one some of the functionality
you suggested:

>>> m=[10,20,30,40,50,60,70,80,90]
>>> n=[0,4,5,7]
>>> def dice(a, b):
...     return [ a[x] for x in xrange(len(a)) if x in b ]
...
>>> dice(m, n)
[10, 50, 60, 80]
History
Date User Action Args
2007-08-23 16:01:08adminlinkissue419903 messages
2007-08-23 16:01:08admincreate