On this page
  1. posix.abort
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posix.abort

Up: posix | Next: posix.access
Rel: posix.access, posix.chdir, posix.chflags, posix.chmod
Ref: docs.python.org — posix.abort
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import abort

Signature & Overview

posix.abort()

Abort the interpreter immediately.

Usage

import os

# Low-level SIGABRT exit; prefer sys.exit() for normal termination
assert callable(os.abort)

Gotchas

REPL Inspect

from posix import abort
help(abort)

Linked from

Related notes