Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.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.081 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'newbie': 0.05; 'from:addr:ian': 0.16; 'slicing,': 0.16; 'thread?': 0.16; 'wrote:': 0.17; 'example': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'received:208.97': 0.29; 'received:208.97.132': 0.29; 'received:66.33': 0.29; 'received:66.33.216': 0.29; 'received:66.33.216.122': 0.29; 'received:dreamhost.com': 0.29; 'received:g.dreamhost.com': 0.29; 'received:hapkido.dreamhost.com': 0.29; 'van': 0.29; 'asking': 0.32; 'to:addr:python-list': 0.33; 'knowledge': 0.33; 'self': 0.34; 'requiring': 0.35; 'so,': 0.35; 'next': 0.35; 'possible': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'provide': 0.62; 'different': 0.63; 'received:208': 0.63; 'subject:get': 0.81; 'approaches,': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=feete.org; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=feete.org; bh=E4pRXMO 5zxOB4Q/VFiIn4puED08=; b=n3zJSgx5CKLQkpz9JjnmopoXIhJEsI8r/xaHa7p Gy9bs9saaq8IkkiDWgSn1ydsneDm+DZT7rA5sbof9wVHVeeqLDM/Htg5LktDJk6o zvs1C7RGpCbdYgIkt/sZg3e+Jm9CCx6fMke3Q3V1Iw5Butea7lrPHsI4+qWFiIeU kdjM= Date: Mon, 22 Oct 2012 05:19:31 +0100 From: Ian Foote User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: get each pair from a string. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350879589 news.xs4all.nl 6963 [2001:888:2000:d::a6]:46632 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31877 On 22/10/12 09:03, Emile van Sebille wrote: > So, as OP's a self confessed newbie asking about slicing, why provide an > example requiring knowledge of tee, enumerate, next and izip? > Because not only the newbie will read the thread? I for one was interested to see all the different possible approaches, and their upsides and downsides. Ian