Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: "for/while ... break(by any means) ... else" make sense? Date: Thu, 30 Jun 2016 00:59:53 -0400 Lines: 15 Message-ID: References: <57746765$0$1593$c3e8da3$5496439d@news.astraweb.com> <57749c30$0$1598$c3e8da3$5496439d@news.astraweb.com> <1467262793.2539987.652709769.7976A72F@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de gGOrgMXlDiOoGnIWfqKxYA6R5JWb2Ryq+dQPWwUDfzIw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'url:msdn': 0.07; 'abort': 0.09; 'received:internal': 0.09; 'subject:while': 0.09; 'thu,': 0.15; 'enlighten': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'subject:break': 0.16; 'subject:make': 0.16; 'wrote:': 0.16; 'of.': 0.18; 'windows': 0.20; 'function,': 0.22; 'function:': 0.22; 'defined': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'error': 0.27; 'equivalent': 0.27; 'actual': 0.28; 'unix,': 0.29; 'reporting': 0.29; 'subject:/': 0.30; 'somebody': 0.30; 'core': 0.32; "d'aprano": 0.33; 'steven': 0.33; 'me?': 0.34; 'but': 0.36; 'subject:" ': 0.36; 'url:library': 0.36; 'to:addr :python-list': 0.36; 'subject:?': 0.36; 'received:10': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; 'behavior': 0.61; 'header:Message-Id:1': 0.61; 'default': 0.61; '30,': 0.63; 'behaviors': 0.72; 'url:en-us': 0.72; 'killing': 0.84; 'popup': 0.84; 'subject:any': 0.84; 'subject:else': 0.84; 'subject:sense': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=+4cMluOmfna3FXGUKccGjqcGhnk=; b=HREnXr OzWrxEYXGAdTlHm/bwDDwBbk7drx2oMVYSsF2WuI5h7eoyRO8GDxbK3a5q7xjpTJ MK0Gk9ufHak4J/Gnz0U4Pvrfe1ZE8BOTPdjj7Xx8RE21LZtMkVIvzFvL0F4Hq1VS 7PmuLUc0AoDXRtQCKz3u7E6S3cGEcqYAUhYyQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=+4cMluOmfna3FXG UKccGjqcGhnk=; b=qbgozPp2Q+aEKv87rwdjDIs8Rb/ljL4AJlJQrvB9PKhD+op kIleJoIB0Hw3PqGcApSVhkEuvTcC9EtTyqofUgi3CtfADqowwaAv+wwlG1Y3edzE dNAGfWAFBnVGoHSm+vOKH0Scip0P7yEfwU1Jx4fh4ZnBB8MjfDdwRZAVNmko= X-Sasl-Enc: Hf4dzlaRz7rJibd2Dm8AFurYuPPgpjAiVBMHVzYDZxAZ 1467262793 X-Mailer: MessagingEngine.com Webmail Interface - ajax-03c7c087 In-Reply-To: <57749c30$0$1598$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1467262793.2539987.652709769.7976A72F@webmail.messagingengine.com> X-Mailman-Original-References: <57746765$0$1593$c3e8da3$5496439d@news.astraweb.com> <57749c30$0$1598$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:110811 On Thu, Jun 30, 2016, at 00:12, Steven D'Aprano wrote: > I tried to find the actual implementation of os.abort(), but I > couldn't work out where it was or what it does. Can somebody > enlighten me? It's in posixmodule.c, it calls abort(), which is a standard C function, equivalent to killing the process with SIGABRT. The core dump behavior is defined as the default signal behavior as SIGABRT in POSIX. Windows has its own additional behavior for the abort function: https://msdn.microsoft.com/en-us/library/k089yyh0.aspx It's not a "segfault", but both behaviors (core dump on unix, and error reporting popup on windows) are reminiscent of it, so that may be what you're thinking of.