Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'list?': 0.07; 'python': 0.09; 'sep': 0.09; 'subject:method': 0.09; 'subject:python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'received:209.85.214.174': 0.21; 'header:In-Reply- To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'to:addr:python-list': 0.33; 'that,': 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'list': 0.35; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'list.': 0.35; 'but': 0.36; 'method': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'back': 0.62; 'subject:there': 0.65; 'believe': 0.69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kWb7ut6kPQS3pdU/wg54Tmh4xj4bqXZAyQcIHjmnJCc=; b=unQJfXAI4atSGEw4mmY5Fp6X47Ju1i7Iv6CL98mbXojgRR0OPEIWmTTMY2vpphGdca 7XwgphKLCIie3ol10zcHS0nTsSDfzVCrO2g8MxWqAQrct4IhbNeQ8DjQ3nO75aYQz0VN 6ms4DkvYVI3R/rl5Gj/i0fivuhkK+288fuHu/MCsBVUZqIu7pv/kcmiKQeiHS+oCLEv0 RyrwPgrbtWML2wwdujjqrQbIHjBAfMlLVTwbLNw6GiX+BTL9SOBip1t+juJGw/HuVkRa pJIldv67vBfiKHIFMu7LNlvqleRBk8QdATiNQPfynBiEGKusQUDO4eks3PWaEer5iMdx RLfA== MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 9 Sep 2012 15:48:35 +1000 Subject: Re: Is there a unique method in python to unique a list? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347169718 news.xs4all.nl 6843 [2001:888:2000:d::a6]:47996 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28755 On Sun, Sep 9, 2012 at 3:43 PM, Token Type wrote: > Is there a unique method in python to unique a list? thanks I don't believe there's a method for that, but if you don't care about order, try turning your list into a set and then back into a list. ChrisA