Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'cpython': 0.05; 'username,': 0.07; 'iterate': 0.09; 'subject:string': 0.09; 'windows': 0.15; 'iterating': 0.16; 'wrote:': 0.18; 'header:User- Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'getting': 0.31; 'received:google.com': 0.35; 'list': 0.37; 'list.': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python- list': 0.38; 'list,': 0.38; 'to:addr:python.org': 0.39; 'thomas': 0.65; '9.1': 0.84; 'freebsd': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=17noSfQb2vXz5/MlrEbm3G2dcKsojA9g1aMew1vpw9M=; b=sbnmkUMXaMW/szKnH3IYWx93UKWUJ57Hz0zHWcJ4vr2h3PTmCOcPGp4+yXfXCYWWD6 f7bJiT4xV4NJfDLWh//32COWVZ7KGYR1VYtwcg7lBPWliBFTLm8Ei+Lo+XZab+dt7FCM YTtTccJ8UrG+EpcVC0oQ2Oy89Vari3vQ93ojhkmr1lfoZzRFQ7VTCg8cN5FxUIeNfWz7 WexszlKlfzw1ERGqlPjY5oY0OqgySy8Ya/TFBeabL2ARe6ox527eL4J4TvLRoB+eWeZY v0d77mhyyFlxKQQXJJZd9Ui53p9bxebMobZSL3Dyoh4sGb7MdbQW4sL1QUDPMf5V5kka 5Mkg== X-Received: by 10.42.54.129 with SMTP id r1mr13659263icg.23.1369437270230; Fri, 24 May 2013 16:14:30 -0700 (PDT) Date: Fri, 24 May 2013 18:14:27 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Prepending string "@" to usernames References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369437278 news.xs4all.nl 15997 [2001:888:2000:d::a6]:51973 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45926 On 2013.05.24 17:53, Thomas Murphy wrote: > I know I'm iterating wrong. May I ask how? .split() already returns a list, so instead of iterating over the list and getting a single username, you iterate over the list and get a single list. -- CPython 3.3.2 | Windows NT 6.2.9200 / FreeBSD 9.1