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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'branching': 0.09; 'determines': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'def': 0.10; 'language': 0.14; '"if"': 0.16; 'false:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:import': 0.16; 'true:': 0.16; 'thu,': 0.17; 'statement': 0.23; 'functions.': 0.27; 'header:X-Complaints-To:1': 0.28; 'chris': 0.28; 'colon': 0.29; 'implies': 0.29; 'function': 0.30; 'could': 0.32; 'turns': 0.33; 'url:home': 0.33; 'to:addr:python- list': 0.33; 'continue': 0.35; 'something': 0.35; 'next': 0.35; 'received:org': 0.36; 'test': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'perform': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'back': 0.62; 'between': 0.63; 'become': 0.65; 'jul': 0.65; 'desired?': 0.84; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: from future import pass_function Date: Thu, 26 Jul 2012 14:01:23 -0400 Organization: > Bestiaria Support Staff < References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-30-36.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 53 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343325697 news.xs4all.nl 6957 [2001:888:2000:d::a6]:52765 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26104 On Thu, 26 Jul 2012 19:42:11 +1000, Chris Angelico declaimed the following in gmane.comp.python.general: > Well, if/while/for could be functions. So could with, probably. Now, > def would be a little tricky... > And how would a function "if" perform if(conditional): would become True: or False: What determines that branching is desired? The colon? (then what does the colon on "def x():" perform?) Or take "while"... while condition: #implies a loop while(condition): #as a function implies a return value so again we have True: or False: Now, how does the language differentiate between a loop and an if? if(conditional): do something and continue with next statement turns into True: do something and continue with next statement while while(conditional): do something and go back to the test turns into True: do something and go back to the test -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/