Next / Previous / Contents / Shipman's homepage

17. fatal(): Fatal error logging

listext2
# - - -   f a t a l

def fatal(*L):
    '''Write an epitaph, and perish.

      [ L is a list of strings ->
          sys.stderr  +:=  concatenated elements of L
          stop execution ]
    '''
    print("***", ''.join(L), file=sys.stderr)
    raise SystemExit