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: 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: References: Date: Fri, 16 Dec 2011 18:38:05 +0000 Subject: Re: Making the case for "typed" lists/iterators in python From: Arnaud Delobelle To: Chris Angelico 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 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: 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 On 16 December 2011 18:25, Chris Angelico 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