How often does python flush to a file?
For file operations, Python uses the operating system’s default buffering unless you configure it do otherwise. You can specify a buffer size, unbuffered, or line buffered. For example, the open function takes a buffer size argument. http://docs.python.org/library/functions.html#open “The optional buffering argument specifies the file’s desired buffer size:” 0 means unbuffered, 1 means line buffered, any … Read more