Package pysys :: Package writer :: Class flushfile
[hide private]
[frames] | no frames]

Class flushfile

source code

Class to flush on each write operation.

Instance Methods [hide private]
 
__init__(self, fp)
Create an instance of the class.
source code
 
write(self, msg)
Perform a write to the file object.
source code
 
seek(self, index)
Perform a seek on the file objet.
source code
 
close(self)
Close the file objet.
source code
Class Variables [hide private]
  fp = None
Method Details [hide private]

__init__(self, fp)
(Constructor)

source code 

Create an instance of the class.

Parameters:
  • fp - The file object

write(self, msg)

source code 

Perform a write to the file object.

Parameters:
  • msg - The string message to write.