Home | Trees | Indices | Help |
---|
|
object --+ | AutoFlush
An AutoFlush wraps a file-like object and flushes the output (via a call to flush() after every write operation. Here's how to use an AutoFlush object to force standard output to flush after every write:
import sys from grizzled.io import AutoFlush sys.stdout = AutoFlush(sys.stdout)
|
|||
|
|||
|
|||
|
|||
|
|||
int |
|
||
|
|||
int |
|
||
Inherited from |
|
|||
Inherited from |
|
|
|
|
|
Set the file's current position. The whence argument is optional; legal values are:
There is no return value. Note that if the file is opened for appending (mode 'a' or 'a+'), any seek() operations will be undone at the next write. If the file is only opened for writing in append mode (mode 'a'), this method is essentially a no-op, but it remains useful for files opened in append mode with reading enabled (mode 'a+'). If the file is opened in text mode (without 'b'), only offsets returned by tell() are legal. Use of other offsets causes undefined behavior. Note that not all file objects are seekable.
|
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Mar 14 15:21:06 2016 | http://epydoc.sourceforge.net |