Next / Previous / Contents / Shipman's homepage

6.5. fatal(): Report a fatal error

Write a message and die. The arguments are a list of messages in string form.

sudoku
# - - -   f a t a l   - - -

def fatal ( *L ):
    """Write a message and terminate.

      [ L is a list of strings ->
          sys.stderr  +:=  concatenation of L
          stop execution ]
    """
    message ( *L )
    sys.exit(1)