Skip to content

Instantly share code, notes, and snippets.

@walterrenner
Created May 16, 2014 22:06
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 walterrenner/c131017e4ed202909e6d to your computer and use it in GitHub Desktop.
Save walterrenner/c131017e4ed202909e6d to your computer and use it in GitHub Desktop.
Quick and dirty debugging with Python file operations
# wtf stands for write to file ;)
def wtf(text):
f = open("/tmp/out.log",'a')
f.write(text+'\n')
f.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment