Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'read.': 0.03; 'interpreter': 0.05; 'definitions': 0.07; 'things,': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'defined.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'interpreter,': 0.16; 'roy': 0.16; 'sees': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'point': 0.28; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'subject:some': 0.31; 'though.': 0.31; 'fri,': 0.33; 'received:google.com': 0.35; '14,': 0.36; 'nov': 0.38; 'that,': 0.38; 'use.': 0.39; 'how': 0.40; 'worry': 0.60; 'smith': 0.68; 'laid': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=17kv9Uz/clXsy7g0ItbmtQoTuHvPivCC1PonkET9khI=; b=g0LdqSnEF+8euY5cS9jvejX1BJ8Ms/DbNM59tc+0YzzUOK1B00R51qxo2pMmYEtHoH omUwanLJHp0ED8JBHOwrRyiQegS8ZwrWV2nCfTKBLZwEKFOJCtZPLZP88XZPkYBYA4Mu VH05H/WTD7edjRfonrvpwgcWRmwU6wvd8aYzPrmUHljCNeZqIvMSP4v92zWgeuf5NUKc hngvwfW5SmeW7NIWjKfc4oDrslF8IPXcR/hOt9XDggSPsuloS5t2OzcboiiZxE5R/3rQ 19b07ttGaUdh0d+uQDRQEWTst8BdWwW5V4PUchFMhXDevpUveLTvXsNDdzp7uxx0tGDl 7eYQ== MIME-Version: 1.0 X-Received: by 10.50.79.135 with SMTP id j7mr2824879igx.14.1415886014746; Thu, 13 Nov 2014 05:40:14 -0800 (PST) In-Reply-To: References: <20141113084725.GA97979@cskk.homeip.net> Date: Fri, 14 Nov 2014 00:40:14 +1100 Subject: Re: How about some syntactic sugar for " __name__ == '__main__' "? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415886018 news.xs4all.nl 2879 [2001:888:2000:d::a6]:46905 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80685 On Fri, Nov 14, 2014 at 12:33 AM, Roy Smith wrote: > ... you also get to not worry > about what order things are defined. That's only as regards the interpreter, though. My point has nothing to do with the order the interpreter sees things, it's all about how they're laid out for humans to read. For that, I prefer to have definitions before use. ChrisA