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: 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: References: Date: Wed, 27 Mar 2013 23:59:41 +1100 Subject: Re: Splitting a list into even size chunks in python? From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Wed, Mar 27, 2013 at 11:51 PM, Roy Smith wrote: > In article , > 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