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


Groups > comp.lang.python > #44621

Re: Why chunks is not part of the python standard lib?

References <CAP5i+tYC+cMtseEduTm76LXkaP1Hh-Tz-_HipO7LsURtnuwtOw@mail.gmail.com> <klqf4g$ekd$1@ger.gmane.org> <mailman.1213.1367398827.3114.python-list@python.org> <5181f679$0$29882$c3e8da3$5496439d@news.astraweb.com> <CAHVvXxQQXLvSSMCp=WEEUpc-RjULQinfxAJn=Gqzg2HP7=t=3g@mail.gmail.com>
Date 2013-05-02 22:55 +1000
Subject Re: Why chunks is not part of the python standard lib?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1233.1367499359.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, May 2, 2013 at 10:52 PM, Oscar Benjamin
<oscar.j.benjamin@gmail.com> wrote:
> They are all easy to write as generator functions but to me the point
> of itertools is that you can do things more efficiently than a
> generator function. Otherwise code that uses a combination of
> itertools primitives is usually harder to understand than an
> equivalent generator function so I'd probably avoid using itertools.

Aren't most of the itertools primitives written in Python anyway? If
your code is harder to understand, just write the generator function!

ChrisA

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


Thread

Re: Why chunks is not part of the python standard lib? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-05-01 10:00 +0100
  Re: Why chunks is not part of the python standard lib? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-02 05:15 +0000
    Re: Why chunks is not part of the python standard lib? Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2013-05-02 08:53 +0000
    Re: Why chunks is not part of the python standard lib? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-02 10:23 +0100
    Re: Why chunks is not part of the python standard lib? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-05-02 13:52 +0100
    Re: Why chunks is not part of the python standard lib? Chris Angelico <rosuav@gmail.com> - 2013-05-02 22:55 +1000
    Re: Why chunks is not part of the python standard lib? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-05-02 14:23 +0100
    Re: Why chunks is not part of the python standard lib? Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2013-05-02 14:02 +0000

csiph-web