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

Random832 random832 at fastmail.com
Thu Jun 30 00:59:53 EDT 2016


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.


More information about the Python-list mailing list