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


Groups > comp.lang.python > #27610

Re: something about split()???

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: something about split()???
Date 2012-08-22 08:30 +0100
References (2 earlier) <CAExgZOh=_Mr0WR4ypXV70s9MUbDHbeppyAq=Nn2yy2NCsws7jQ@mail.gmail.com> <502A865E.4030504@sequans.com> <CAExgZOiHi-mE1mVvxYOST5RDbosDn3fP1X2nxkyDiKk=0ajjSw@mail.gmail.com> <CADYZVBCZZ3cAHGDe=wyi62Hg9+qU_r2U8F+85gHEOzs0Ekv1BA@mail.gmail.com> <k11ro8$cer$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.3634.1345620569.4697.python-list@python.org> (permalink)

Show all headers | View raw


On 22/08/2012 06:46, Terry Reedy wrote:
> On 8/21/2012 11:43 PM, mingqiang hu wrote:
>> why filter is bad when use lambda ?
>
> Inefficient, not 'bad'. Because the equivalent comprehension or
> generator expression does not require a function call.
>

A case of premature optimisation? :)

-- 
Cheers.

Mark Lawrence.

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


Thread

Re: something about split()??? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-22 08:30 +0100

csiph-web