Python handles globals badly.
Jussi Piitulainen
harvesting at makes.email.invalid
Thu Sep 10 15:11:25 EDT 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