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


Groups > comp.lang.python > #48784

Re: Idea for key parameter in all() builting, would it be feasible?

Date 2013-06-20 12:45 +0200
From Antoon Pardon <antoon.pardon@rece.vub.ac.be>
Subject Re: Idea for key parameter in all() builting, would it be feasible?
References <9150d9b7-e488-4f9f-beff-4a140bcc78f0@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.3619.1371725131.3114.python-list@python.org> (permalink)

Show all headers | View raw


Op 19-06-13 18:14, russ.pobox@gmail.com schreef:
>
>>>> all(map(lambda x: bool(x), xrange(10**9)))

Since you already have your answer, I just like to get your attention
to the fact the the lambda is superfluous here. Your expression
above is equivallent to

  all(map(bool, xrange(10**9)))

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


Thread

Idea for key parameter in all() builting, would it be feasible? russ.pobox@gmail.com - 2013-06-19 09:14 -0700
  Re: Idea for key parameter in all() builting, would it be feasible? Chris Angelico <rosuav@gmail.com> - 2013-06-20 02:20 +1000
  Re: Idea for key parameter in all() builting, would it be feasible? russ.pobox@gmail.com - 2013-06-19 09:32 -0700
    Re: Idea for key parameter in all() builting, would it be feasible? Chris Angelico <rosuav@gmail.com> - 2013-06-20 02:39 +1000
      Re: Idea for key parameter in all() builting, would it be feasible? Russel Walker <russ.pobox@gmail.com> - 2013-06-20 03:05 -0700
  Re: Idea for key parameter in all() builting, would it be feasible? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-06-20 12:45 +0200
    Re: Idea for key parameter in all() builting, would it be feasible? Russel Walker <russ.pobox@gmail.com> - 2013-06-20 07:49 -0700
      Re: Idea for key parameter in all() builting, would it be feasible? Chris Angelico <rosuav@gmail.com> - 2013-06-21 01:48 +1000

csiph-web