Created
May 16, 2014 22:06
-
-
Save walterrenner/c131017e4ed202909e6d to your computer and use it in GitHub Desktop.
Quick and dirty debugging with Python file operations
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
# 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