Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.093 X-Spam-Evidence: '*H*': 0.82; '*S*': 0.00; 'am,': 0.12; 'wrote:': 0.16; 'subject:list': 0.18; 'convert': 0.19; 'header:In-Reply- To:1': 0.22; 'aug': 0.24; 'thu,': 0.28; 'message- id:@mail.gmail.com': 0.29; 'received:209.85.161.46': 0.31; 'received:mail-fx0-f46.google.com': 0.31; 'list': 0.32; 'to:addr :python-list': 0.33; 'to?': 0.34; 'received:209.85.161': 0.35; 'subject:How': 0.35; 'variables': 0.37; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'one,': 0.40; '10:57': 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 :content-type; bh=ScSiSNFvtH3O+VTAiD5Y79Jh1vni4zymrerUYYlWuF8=; b=nnvbz3wkLU6glYfVMxQKhxwX/d02GbSJbVIROhAx7JIn36aR7/PcSKkXkRE8zYxIAi PZrQPPkAlvffzejXEYPxYoc1qpxMkU/Z2JNfa3JVGKgCcHPxH0ZHYslD9cqq7oCUeB/N wO4+lxJ5WU8sfG9lIzGGpkN+73XvqySJCkxbU= MIME-Version: 1.0 In-Reply-To: <2ab25f69-6017-42a6-a7ef-c71bc2ee8547@l2g2000vbn.googlegroups.com> References: <2ab25f69-6017-42a6-a7ef-c71bc2ee8547@l2g2000vbn.googlegroups.com> Date: Thu, 18 Aug 2011 11:12:37 -0400 Subject: Re: How to convert a list of strings into a list of variables From: David Robinow To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313680359 news.xs4all.nl 23878 [2001:888:2000:d::a6]:40987 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11767 On Thu, Aug 18, 2011 at 10:57 AM, noydb wrote: > How would you convert a list of strings into a list of variables using > the same name of the strings? > > So, ["red", "one", "maple"] into [red, one, maple] Why would you want to?