Skip to content

Instantly share code, notes, and snippets.

@GregHilston
Created December 18, 2017 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GregHilston/b8dbe1f48d53352fa4b52e40cabb723f to your computer and use it in GitHub Desktop.
Save GregHilston/b8dbe1f48d53352fa4b52e40cabb723f to your computer and use it in GitHub Desktop.
Prints a message to stderr
import sys
def eprint(*args, **kwargs):
"""Prints a message to stderr
:param args: variable amount of arg Strings to print to stderr
:param kwargs: variable amount of keyword arg Strings to print to stderr
"""
print(*args, file=sys.stderr, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment