Python handles globals badly.

Jussi Piitulainen harvesting at
Thu Sep 10 21:11:25 CEST 2015

Steven D'Aprano writes:

> Or os.abort. The docs for that say:
> Help on built-in function abort in module posix:
> abort(...)
>     abort() -> does not return!
>     Abort the interpreter immediately.  This 'dumps core' or otherwise
>     fails in the hardest way possible on the hosting operating system.
> So, what would os.abort() return, if everything is an expression?

But os.abort() *is* an expression. It's allowed where only an expression
is valid syntax.

More information about the Python-list mailing list