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


Groups > comp.lang.python > #16421

Re: How convert a list string to a real list

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <alec.taylor6@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'json': 0.07; 'subject:string': 0.09; 'am,': 0.12; 'received:209.85.210.174': 0.13; 'received:mail-iy0-f174.google.com': 0.13; 'from:addr:alec.taylor6': 0.16; 'from:name:alec taylor': 0.16; 'cc:addr:python-list': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'convert': 0.19; 'cc:no real name:2**0': 0.20; 'subject:list': 0.21; 'header:In-Reply-To:1': 0.22; 'string': 0.24; 'thanks.': 0.26; 'cc:addr:gmail.com': 0.28; 'url:mailman': 0.28; 'message- id:@mail.gmail.com': 0.28; 'module.': 0.29; 'cc:addr:python.org': 0.29; 'nov': 0.29; 'pm,': 0.29; 'list': 0.32; 'url:listinfo': 0.32; 'subject:How': 0.35; 'url:python': 0.36; 'cc:2**1': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'url:org': 0.39; 'received:209': 0.40; '2011': 0.61; '30,': 0.74; ',and': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=8DW6+24BmVAtfkNcwlxQMSjYstVMj6KeZCSqNKxAJ+k=; b=JJzxdLX0HsLS31oBV8X+rtKCdp/td0sK6oO0Cedp0vSKuF5S7Nm5le0uDgRu1TcD/L 3zEfBeR6tx1Q2gu4XyJQRZIeJDP6jw1IeTWX0wA9l/v+K7N95sCDnTwAZFuk7Dz60vV9 X5pocR0RVMq1hmBPldpy0PMkLnz9jFEny1QvU=
MIME-Version 1.0
In-Reply-To <CAJ6cK1b4hAk10D3-UL3X0zkTQ+xZzkDp2a-Ww2kEwvwagz3vgA@mail.gmail.com>
References <CAHbqn4jog2CzT+ahL3XwPZwvAr8eKN3qHsp2yaJk1VYa1157JQ@mail.gmail.com> <CAJ6cK1b4hAk10D3-UL3X0zkTQ+xZzkDp2a-Ww2kEwvwagz3vgA@mail.gmail.com>
Date Wed, 30 Nov 2011 18:23:08 +1100
Subject Re: How convert a list string to a real list
From Alec Taylor <alec.taylor6@gmail.com>
To Arnaud Delobelle <arnodel@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.3147.1322637791.27778.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1322637791 news.xs4all.nl 6953 [2001:888:2000:d::a6]:39666
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:16421

Show key headers only | View raw


Arnaud: Already showed that solution

On Wed, Nov 30, 2011 at 6:09 PM, Arnaud Delobelle <arnodel@gmail.com> wrote:
>
> On Nov 30, 2011 6:21 AM, "郭军权" <guojunquan@gmail.com> wrote:
>>
>> Good after
>>     I have a string  liststr = '["aaaa","bbbb","ccc"]' ,and I need convert
>> it to a list like list = ["aaaa","bbbb","ccc"],what can id do?
>> Thanks.
>>
>
> Look up the json module.
>
> --
> Arnaud
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

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


Thread

Re: How convert a list string to a real list Alec Taylor <alec.taylor6@gmail.com> - 2011-11-30 18:23 +1100

csiph-web