Next / Previous / Contents / Shipman's homepage

18. message(): Write an error message

deduper
def message(*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)