Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.043 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'unlikely': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'documented': 0.24; 'skip': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'url:bugs': 0.29; 'change,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; '13,': 0.31; 'subject:some': 0.31; 'url:python': 0.33; 'received:google.com': 0.35; 'url:org': 0.36; 'nov': 0.38; 'pm,': 0.38; 'to:addr:gmail.com': 0.65; 'behavior': 0.77 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:to :cc:content-type; bh=uhjgeGJkgm6NVAKHra7vDUVfjULwCxhg8izA93vV0gc=; b=ogm3iS3EWjz3JshbGYlmkzg1/AwqRrtyxYux8u3ojT5YaYRSV1WWMCmm5XNh2wAIL4 emw00gwogqwkOvwg3DDnh+LEpIbR4C1tjvf1Zw29EcfTKsT4PU/dhZ1rYrx/Fh0smtqg wz69RhyVwPVNEAjC02MM0roc68s+4HqE71hDY350G7dvNxrJEXgPV92RxQj/CEnmbfvl F5u6VSNdu5dpTcTKWhsqoUHPqXsnr7Jq1DTAcdPTe/a7otSLjav06Ugj0JQ5hcyT7P15 xgtang6zbCQDeVT770sP1hTQuxiIvt68bfrgcFX1toXkNnAqs3YGrhaTmp+t8M3wDONE Pn5w== MIME-Version: 1.0 X-Received: by 10.107.130.98 with SMTP id e95mr4473348iod.87.1415912039338; Thu, 13 Nov 2014 12:53:59 -0800 (PST) In-Reply-To: References: <71b9a111-283f-4006-bc9d-e35782d9888c@googlegroups.com> <5464F958.4070404@stoneleaf.us> Date: Thu, 13 Nov 2014 14:53:59 -0600 Subject: Re: How about some syntactic sugar for " __name__ == '__main__' "? From: Skip Montanaro To: Ian Kelly Content-Type: text/plain; charset=UTF-8 Cc: Python 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: 1415912047 news.xs4all.nl 2886 [2001:888:2000:d::a6]:38284 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80704 On Thu, Nov 13, 2014 at 2:44 PM, Skip Montanaro wrote: > What's not documented is > the behavior of calling atexit.register() while atexit._run_exitfuncs > is running. That's an implementation detail, and though unlikely to > change, it might be worthwhile getting that behavior documented. http://bugs.python.org/issue22867 Skip