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 sleepycal
Recipients ezio.melotti, rhettinger, sleepycal
Date 2011-10-03.18:56:33
SpamBayes Score 0.070578925
Marked as misclassified No
Message-id <1317668193.93.0.970561499463.issue13095@psf.upfronthosting.co.za>
In-reply-to
Content
Oh - and while we are at it - how about having merge_list() and unique_list() as part of the core too??


def unique_list(seq): # Dave Kirby
    # Order preserving
    seen = set()
    return [x for x in seq if x not in seen and not seen.add(x)]
    
def merge_list(seq):
    merged = []
    for s in seq:
        for x in s:
            merged.append(x)
    return merged

Raymond - any thoughts on these 3 requests???

Cal
History
Date User Action Args
2011-10-03 18:56:33sleepycalsetrecipients: + sleepycal, rhettinger, ezio.melotti
2011-10-03 18:56:33sleepycalsetmessageid: <1317668193.93.0.970561499463.issue13095@psf.upfronthosting.co.za>
2011-10-03 18:56:33sleepycallinkissue13095 messages
2011-10-03 18:56:33sleepycalcreate