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


Groups > comp.lang.python > #31877

Re: get each pair from a string.

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 <ian@feete.org>
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 <ian@feete.org>
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 <CALyJZZURWQxgPTQcQo8kOdHkaOYbB6YE=U=vi6VrX9FoDH1gAQ@mail.gmail.com> <k61fr6$s5m$1@ger.gmane.org> <CALyJZZUui_Z_M6toRRiRmAhsGscCj_O0POw9Cb8Z8jOqW5O50g@mail.gmail.com> <CALwzid=4WxNw7+q4GWcULSNYxFinJkpbpc_u8s97bf8RUjty7w@mail.gmail.com> <k61kd7$ka$1@ger.gmane.org>
In-Reply-To <k61kd7$ka$1@ger.gmane.org>
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 <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.2617.1350879589.27098.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

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


Thread

Re: get each pair from a string. Ian Foote <ian@feete.org> - 2012-10-22 05:19 +0100

csiph-web