Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #110811

Re: "for/while ... break(by any means) ... else" make sense?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Random832 <random832@fastmail.com>
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 <mailman.123.1467262795.2358.python-list@python.org> (permalink)
References <CAGtOLTe8VOnW6zbQSpoCwLL8Hj=cvF6wZ7wx-gxO=9-bQQ0fMw@mail.gmail.com> <mailman.101.1467194475.2358.python-list@python.org> <57746765$0$1593$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmqAmesf58J9bYa7_vWXTtjnFU7JrkGy5hoqFNC3tTx-8Q@mail.gmail.com> <mailman.116.1467250108.2358.python-list@python.org> <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 <random832@fastmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <1467262793.2539987.652709769.7976A72F@webmail.messagingengine.com>
X-Mailman-Original-References <CAGtOLTe8VOnW6zbQSpoCwLL8Hj=cvF6wZ7wx-gxO=9-bQQ0fMw@mail.gmail.com> <mailman.101.1467194475.2358.python-list@python.org> <57746765$0$1593$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmqAmesf58J9bYa7_vWXTtjnFU7JrkGy5hoqFNC3tTx-8Q@mail.gmail.com> <mailman.116.1467250108.2358.python-list@python.org> <57749c30$0$1598$c3e8da3$5496439d@news.astraweb.com>
Xref csiph.com comp.lang.python:110811

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: "for/while ... break(by any means) ... else" make sense? Victor Savu <victor.nicolae.savu@gmail.com> - 2016-06-29 10:01 +0000
  Re: "for/while ... break(by any means) ... else" make sense? Steven D'Aprano <steve@pearwood.info> - 2016-06-30 10:27 +1000
    Re: "for/while ... break(by any means) ... else" make sense? Chris Angelico <rosuav@gmail.com> - 2016-06-30 11:28 +1000
      Re: "for/while ... break(by any means) ... else" make sense? Rustom Mody <rustompmody@gmail.com> - 2016-06-29 19:26 -0700
        Re: "for/while ... break(by any means) ... else" make sense? Random832 <random832@fastmail.com> - 2016-06-30 00:00 -0400
      Re: "for/while ... break(by any means) ... else" make sense? Steven D'Aprano <steve@pearwood.info> - 2016-06-30 14:12 +1000
        Re: "for/while ... break(by any means) ... else" make sense? Chris Angelico <rosuav@gmail.com> - 2016-06-30 14:40 +1000
        Re: "for/while ... break(by any means) ... else" make sense? Zachary Ware <zachary.ware+pylist@gmail.com> - 2016-06-29 23:47 -0500
        Re: "for/while ... break(by any means) ... else" make sense? Random832 <random832@fastmail.com> - 2016-06-30 00:59 -0400

csiph-web