Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28755

Re: Is there a unique method in python to unique a list?

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 <rosuav@gmail.com>
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 <c44aff41-71ed-4323-9184-9c87bd0e1119@googlegroups.com>
References <c44aff41-71ed-4323-9184-9c87bd0e1119@googlegroups.com>
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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.402.1347169718.27098.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sun, Sep 9, 2012 at 3:43 PM, Token Type <typetoken@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is there a unique method in python to unique a list? Token Type <typetoken@gmail.com> - 2012-09-08 22:43 -0700
  Re: Is there a unique method in python to unique a list? Chris Angelico <rosuav@gmail.com> - 2012-09-09 15:48 +1000
  Re: Is there a unique method in python to unique a list? Chris Angelico <rosuav@gmail.com> - 2012-09-09 16:32 +1000
    Re: Is there a unique method in python to unique a list? Token Type <typetoken@gmail.com> - 2012-09-08 23:44 -0700
      Re: Is there a unique method in python to unique a list? Paul Rubin <no.email@nospam.invalid> - 2012-09-09 01:41 -0700
        Re: Is there a unique method in python to unique a list? Paul Rubin <no.email@nospam.invalid> - 2012-09-09 02:06 -0700
        Re: Is there a unique method in python to unique a list? Token Type <typetoken@gmail.com> - 2012-09-09 06:44 -0700
          Re: Is there a unique method in python to unique a list? Chris Angelico <rosuav@gmail.com> - 2012-09-10 00:13 +1000
  Re: Is there a unique method in python to unique a list? Serhiy Storchaka <storchaka@gmail.com> - 2012-09-09 11:36 +0300

csiph-web