Created
December 18, 2017 19:31
-
-
Save GregHilston/b8dbe1f48d53352fa4b52e40cabb723f to your computer and use it in GitHub Desktop.
Prints a message to stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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