Next / Previous / Contents / Shipman's homepage

6.4. message(): Write to the standard error stream

Writes a message to the standard error stream. One or more strings are supplied as arguments.

sudoku
# - - -   m e s s a g e   - - -

def message ( * L ):
    """Write a message to sys.stderr.

      [ L is a list of strings ->
          sys.stderr  +:=  concatenation of L ]
    """
    sys.stderr.write ( "*** %s\n" % "".join(L) )