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


Groups > comp.lang.python > #42013

Re: Splitting a list into even size chunks in python?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.087
X-Spam-Evidence '*H*': 0.84; '*S*': 0.01; 'subject:into': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inversion': 0.16; 'roy': 0.16; 'time.time()': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'header:In- Reply-To:1': 0.27; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'subject:size': 0.31; 'received:209.85': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'mar': 0.68; 'smith': 0.68; 'article': 0.77; 'otten': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=y0MYoZwxMuC1kRbgsULa3DtSo6ZXmFMGgbGB19zj0VU=; b=Xq1ctQIN88VXTY73qW4Ol+lSSXqaB3SO8VCu212s+ZnxHkZG332rgHTeMAcyvJkVc2 s7xXYGZHLSTeyynX1NRAF2UrSlCD/Qj/XU3pYUJeTYIAWgNQj979cP2GIXgz/BATi02h VLUiUPKXWw4wD5S81ajqpKzs+K877Efo7hE6uiqwOFJR7JUj4gsFBX3VUPfwIV63sJcw nAjfGtvTWi2yxvPtdqMzCbN/EkCtdVHy6M8ZXneoIOQrzTvR+YtYhsc0ls2RpImZ+6ue nKRh6J7MDQQa0+jzuZXkPjRd75qlO5fRq2l8gKp2VI+SrzDFSbDFLS1kL5CObTM4N/Cr OVCQ==
MIME-Version 1.0
X-Received by 10.52.37.109 with SMTP id x13mr19929730vdj.10.1364389181822; Wed, 27 Mar 2013 05:59:41 -0700 (PDT)
In-Reply-To <roy-6AE143.08513627032013@70-1-84-166.pools.spcsdns.net>
References <abcd1234abc123ab12a0000000208000020000001052@gmail.com> <mailman.3796.1364372856.2939.python-list@python.org> <roy-6AE143.08513627032013@70-1-84-166.pools.spcsdns.net>
Date Wed, 27 Mar 2013 23:59:41 +1100
Subject Re: Splitting a list into even size chunks in python?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.3809.1364389191.2939.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1364389191 news.xs4all.nl 6953 [2001:888:2000:d::a6]:57251
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:42013

Show key headers only | View raw


On Wed, Mar 27, 2013 at 11:51 PM, Roy Smith <roy@panix.com> wrote:
> In article <mailman.3796.1364372856.2939.python-list@python.org>,
>  Peter Otten <__peter__@web.de> wrote:
>
>> Look again, for the grouper() recipe.
>
> Grouper() is good tty.cooked() with just a little time.time() and
> crypt.salt()

Huh, an inversion of http://xkcd.com/282/

ChrisA

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


Thread

Re: Splitting a list into even size chunks in python? Peter Otten <__peter__@web.de> - 2013-03-27 09:27 +0100
  Re: Splitting a list into even size chunks in python? Roy Smith <roy@panix.com> - 2013-03-27 08:51 -0400
    Re: Splitting a list into even size chunks in python? Chris Angelico <rosuav@gmail.com> - 2013-03-27 23:59 +1100
      Re: Splitting a list into even size chunks in python? Roy Smith <roy@panix.com> - 2013-03-27 19:42 -0400
        Re: Splitting a list into even size chunks in python? Chris Angelico <rosuav@gmail.com> - 2013-03-28 11:15 +1100

csiph-web