Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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; 'callable': 0.09; 'cc:addr:python-list': 0.10; 'language': 0.14; "can't.": 0.16; 'class),': 0.16; 'subject:import': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'statement': 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'rest': 0.28; 'no,': 0.29; 'received:209.85.160.46': 0.32; 'could': 0.32; 'received:google.com': 0.34; 'received:209.85': 0.35; 'michael': 0.36; 'flow': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; '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=Y+7FArldxd4POUicXgMEOe9q8UER+pYYZR5r+JSjq7s=; b=mAc/ajD/epo0nuTltc4k/dFptBJKRi4RIHlYgBXo1VEQcDnspAghdDNGQQBrL759SK +fTrwKl8sPsUbRHyYiZyiJu6zsp+j8PV4hpYHL+l9fauLpXnLzNo5bCA9Oq6zm7FoLVl 53Vtnusa0kII3NjwP6/S8VbZrxo7ag6hyW3KastyhitqErq5TcnJxpP6BZO2fIf1+TLS XeUeWPqS6c2UkcD0m6XkZOLfjW4FJuuxSI/nUTJCm/L+rp9VHB/uAKcKz33cHfyczVyX 5OZEBpL646Z4y1i//3a9C44/qgyrL7mfYxqWpuwExsPeCpRyc2puMuX+Ut1uiMdZXX3V qEDQ== MIME-Version: 1.0 In-Reply-To: References: From: Devin Jeanpierre Date: Thu, 26 Jul 2012 05:16:17 -0400 Subject: Re: from future import pass_function To: Michael Hrivnak Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org, Ulrich Eckhardt 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: 1343294227 news.xs4all.nl 6962 [2001:888:2000:d::a6]:38877 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26073 On Thu, Jul 26, 2012 at 1:20 AM, Michael Hrivnak wrote: > If we want pass(), then why not break() and continue()? And also > def() and class()? for(), while(), if(), with(), we can make them all > callable objects! No, you actually can't. 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). -- Devin