Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #17375
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <arnodel@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.056 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'subject:python': 0.10; 'def': 0.13; 'arg': 0.16; 'lambda': 0.16; 'subject:case': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:2**0': 0.24; 'subject:" ': 0.28; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'chris': 0.30; 'subject:/': 0.35; 'received:209.85.161': 0.36; 'subject:lists': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.40; '2011': 0.61; 'strange': 0.68; 'subject:Making': 0.84; 'spell': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=g9JM0pq1VxB3dAmRDaREqoMMwgwenQ9fIJNR1urAyWw=; b=TuNW8qSZog7OdsrmAH5qz+l+qygnt6vPWQvHnUV/zlJKiaAslllr0MeMmj+BaS1o16 /yczgae1GEXdlJsL1p9RgFaibgGtyDKIt/dP1GxBPuXS+xskbDTB5xY45snkjB8pnZne 0I7uWqxbLetGY6T7p20hvBCxYrNoXTCnjPtuY= |
| MIME-Version | 1.0 |
| In-Reply-To | <CAPTjJmoQJzHj0GiDv4G-MDHabssUQsCC4VT9anz2oikm6zHjUw@mail.gmail.com> |
| References | <mailman.3739.1324057724.27778.python-list@python.org> <roy-CE17C0.13053616122011@news.panix.com> <CAPTjJmoQJzHj0GiDv4G-MDHabssUQsCC4VT9anz2oikm6zHjUw@mail.gmail.com> |
| Date | Fri, 16 Dec 2011 18:38:05 +0000 |
| Subject | Re: Making the case for "typed" lists/iterators in python |
| From | Arnaud Delobelle <arnodel@gmail.com> |
| To | Chris Angelico <rosuav@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| 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.3746.1324060688.27778.python-list@python.org> (permalink) |
| Lines | 12 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1324060688 news.xs4all.nl 6957 [2001:888:2000:d::a6]:39912 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:17375 |
Show key headers only | View raw
On 16 December 2011 18:25, Chris Angelico <rosuav@gmail.com> wrote:
> tee = lambda func,arg: (func(arg),arg)[1]
What a strange way to spell it!
def tee(func, arg):
func(arg)
return arg
--
Arnaud
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Making the case for "typed" lists/iterators in python Nathan Rice <nathan.alexander.rice@gmail.com> - 2011-12-16 12:48 -0500
Re: Making the case for "typed" lists/iterators in python Roy Smith <roy@panix.com> - 2011-12-16 13:05 -0500
Re: Making the case for "typed" lists/iterators in python Chris Angelico <rosuav@gmail.com> - 2011-12-17 05:25 +1100
Re: Making the case for "typed" lists/iterators in python Arnaud Delobelle <arnodel@gmail.com> - 2011-12-16 18:38 +0000
Re: Making the case for "typed" lists/iterators in python Chris Angelico <rosuav@gmail.com> - 2011-12-17 05:43 +1100
Re: Making the case for "typed" lists/iterators in python Mel Wilson <mwilson@the-wire.com> - 2011-12-16 15:14 -0500
Re: Making the case for "typed" lists/iterators in python Ben Finney <ben+python@benfinney.id.au> - 2011-12-17 07:17 +1100
Re: Making the case for "typed" lists/iterators in python Terry Reedy <tjreedy@udel.edu> - 2011-12-16 17:21 -0500
Re: Making the case for "typed" lists/iterators in python Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-12-19 14:16 +0100
Re: Making the case for "typed" lists/iterators in python Nathan Rice <nathan.alexander.rice@gmail.com> - 2011-12-19 10:56 -0500
csiph-web