Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.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.085 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'subject:PEP': 0.07; 'cc:addr:python-list': 0.11; 'example?': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'aug': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'lists': 0.32; 'cases': 0.33; 'maybe': 0.34; 'subject:from': 0.34; 'could': 0.34; 'subject:lists': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'possible': 0.36; 'list': 0.37; 'does': 0.39; 'enough': 0.39; 'occur': 0.65; 'to:addr:gmail.com': 0.65; 'case?': 0.84; 'afford': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=12NETmLU2Gc+TE7at1IqsmOu3yzYKiy8xQOx93vbtIk=; b=rqWOwESfTNd6rqlB7f98a0PhwMEWNgJ+zfQSbSMXF6LbrL1HcIca019yLFHLN9v0pE XlXaBAcS6831SmbhZ1l0h4lwSG1UMchqAr9AiFD2bxISg8LZyMTN8wLSC7hht0XIm6vu dk+CtDsRkk5sXXP+rwRgo7SSn5ze0zY7ZAs6phbbR3/b2PBArio/WnSVLkjSgh1Pfwm5 2PoDfGu3/T9TuPUKx/O/XNJh5+9BMcVgYgcJaLWYkK4E6ss4DBh83jYzoTcDxMrdJwbG RM2stlZ/MzMF5B7KVPqenE1foLjsn5ogtsKudtHeXBRTUPDArRpUeEzQQQuvP6MbL2f/ 5npA== MIME-Version: 1.0 X-Received: by 10.49.1.166 with SMTP id 6mr5263527qen.65.1375960373687; Thu, 08 Aug 2013 04:12:53 -0700 (PDT) In-Reply-To: <531d89a8-61e1-4117-b4cc-f02b3be30bb9@googlegroups.com> References: <531d89a8-61e1-4117-b4cc-f02b3be30bb9@googlegroups.com> Date: Thu, 8 Aug 2013 12:12:53 +0100 Subject: Re: Suggestion: PEP for popping slices from lists From: Nicholas Cole To: Neatu Ovidiu Content-Type: multipart/alternative; boundary=047d7b6d97264c98c904e36dbdcd Cc: python-list@python.org 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: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375960376 news.xs4all.nl 15883 [2001:888:2000:d::a6]:41437 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52188 --047d7b6d97264c98c904e36dbdcd Content-Type: text/plain; charset=ISO-8859-1 On Thu, Aug 8, 2013 at 11:38 AM, Neatu Ovidiu wrote: > > > > But what's your use case? > > > > Does it occur often enough that you cannot afford a two-liner like > I think uses cases are plenty. > > The possible cases I can think of would be better served with list comprehensions (what you seem to want is to create lists based on other lists) - but maybe I'm missing something. Could we have one example? N. --047d7b6d97264c98c904e36dbdcd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On Thu, Aug 8, 2013 at 11:38 AM, Neatu Ovidiu <neatuovi@gmail.com= > wrote:


> But what's your use case?
>
> Does it occur often enough that you cannot afford a two-liner like
I think uses cases are plenty.


The possible cases I can think of would be better served with= list comprehensions (what you seem to want is to create lists based on oth= er lists) - but maybe I'm missing something. =A0Could we have one examp= le?

N.=A0

=A0

--047d7b6d97264c98c904e36dbdcd--