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. -- https://mail.python.org/mailman/listinfo/python-list