Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!news.astraweb.com!border2.a.newsrouter.astraweb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!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; 'see.': 0.07; 'executes': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'implemented.': 0.09; 'message- id:@stoneleaf.us': 0.09; '~ethan~': 0.09; 'subject:How': 0.10; 'python': 0.11; 'before.': 0.16; 'exactly,': 0.16; 'hides': 0.16; 'how,': 0.16; 'discussions': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'header:User-Agent:1': 0.23; 'header:In-Reply- To:1': 0.27; 'function': 0.29; "i'm": 0.30; 'idea,': 0.31; 'proposing': 0.31; 'subject:some': 0.31; 'summary': 0.32; 'but': 0.35; 'should': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'details.': 0.61; 'john': 0.61; 'received:173': 0.61; 'forward': 0.65; 'believe': 0.68; 'invite': 0.98 Date: Wed, 12 Nov 2014 13:19:45 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: How about some syntactic sugar for " __name__ == '__main__' "? References: <71b9a111-283f-4006-bc9d-e35782d9888c@googlegroups.com> In-Reply-To: <71b9a111-283f-4006-bc9d-e35782d9888c@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415827196 news.xs4all.nl 2973 [2001:888:2000:d::a6]:38593 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3168 X-Received-Body-CRC: 3134726945 Xref: csiph.com comp.lang.python:80629 On 11/12/2014 01:02 PM, John Ladasky wrote: > > I would like to start a discussion about whether Python should include > a function which executes this evaluation, and hides all of the unfriendly > dunderish details. And if that's a good idea, I would invite a discussion > of how, exactly, it should be implemented. I'm nowhere near proposing a > PEP, but that may come later. I believe this has come up before. You might check the Python-Ideas list to see. If you do, please write up a summary of the past discussions so we can move forward instead of rehashing the same things as before. -- ~Ethan~