Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(except': 0.05; 'function,': 0.07; 'omit': 0.07; 'python': 0.09; 'cc:addr:python- list': 0.10; 'def': 0.10; 'language': 0.14; 'class),': 0.16; 'haskell,': 0.16; 'subject:import': 0.16; 'sure.': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'cc:2**0': 0.23; 'statement': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'functions.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'rest': 0.28; 'chris': 0.28; 'received:209.85.160.46': 0.32; 'could': 0.32; 'received:google.com': 0.34; 'received:209.85': 0.35; 'flow': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'little': 0.39; 'header:Received:5': 0.40; '26,': 0.65; 'jul': 0.65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=RcVmzoVKBgo/Rt/prIt6v4NdDdAGq7wMh0TzmeX29vQ=; b=LCQtapyqBT02VbaXgM6xtFMNxWErCN13NwW6dd1tFvV2eF8M+AXrMdeFVBGi5Lx1aS P9j6NKBFal7CaDPZRt9vObw+V7VZPZ0Cr7S4rqISs41CLRSEpJnmcpG3D7nispWVb0i+ sZ5bqS7ykSBiWqgerjIcvJgzV6qF6MXmm86ra6HxtyqS06WD0YTkpwy62NmPhIBQuYeG IqTG8fdbsk+hslHkUCdwbubPxWNKuy+bnpyxAWwseuYbkoGT4WyEWnf9D0H6iDQ8m1XF OWxDILvNsg4+4VZBZr1+0lF8cljQ4MLzWnM4QUTEjQz1rA4qvfF8jz1WrB5DCwkiuDju Rq1g== MIME-Version: 1.0 In-Reply-To: References: From: Devin Jeanpierre Date: Thu, 26 Jul 2012 06:00:53 -0400 Subject: Re: from future import pass_function 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343296896 news.xs4all.nl 6950 [2001:888:2000:d::a6]:56536 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26077 On Thu, Jul 26, 2012 at 5:42 AM, Chris Angelico wrote: >> You omit the one control flow statement that could actually be turned >> into a function, raise. None of the rest could in Python (except >> class), and one of the rest couldn't in any language (def). > > Well, if/while/for could be functions. So could with, probably. Now, > def would be a little tricky... In Haskell, sure. -- Devin