Skip to content

Instantly share code, notes, and snippets.

@puzzledqs
Last active August 29, 2015 14:00
Show Gist options
  • Save puzzledqs/11168305 to your computer and use it in GitHub Desktop.
Save puzzledqs/11168305 to your computer and use it in GitHub Desktop.
flush the Python stdout buffer
sys.stdout.flush()

This function will flush the output (e.g. print 'hello world') immdiately to the command line so that you can see the results of the program in real time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment