Next / Previous / Contents / Shipman's homepage

8. fatal(): Fatal errors

tracecase
# - - -   f a t a l

def fatal(*L):
    '''Print a message and terminate.

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