Package gmisclib :: Module chunkio :: Class datachunk_w
[frames] | no frames]

Class datachunk_w

source code


This writes stuff to a file.

Instance Methods
 
__init__(self, fd, width=80) source code
 
stringwrite(self, ch, b=0)
ch is the chunk of text.
source code
 
nl(self) source code
 
comment(self, comment) source code
 
close(self) source code
 
__del__(self) source code
 
groupend(self, b=1) (Inherited from gmisclib.chunkio.chunk_w) source code
 
groupstart(self, contents, b=1, comment=None)
The 'contents' argument is conventionally a string containing 'a' for an internal array, 'g' for a group, 'd' for a dictionary... (Inherited from gmisclib.chunkio.chunk_w)
source code
 
write(self, ch, b=0) (Inherited from gmisclib.chunkio.chunk_w) source code
 
write_None(self) (Inherited from gmisclib.chunkio.chunk_w) source code
 
write_NumArray(self, d, b=0, converter=<type 'str'>) (Inherited from gmisclib.chunkio.chunk_w) source code
 
write_array(self, data, b=0, converter=<type 'str'>) (Inherited from gmisclib.chunkio.chunk_w) source code
 
write_array_of(self, data, writer, b=0) (Inherited from gmisclib.chunkio.chunk_w) source code
 
write_dict(self, data, b=0, converter=<type 'str'>) (Inherited from gmisclib.chunkio.chunk_w) source code
 
write_dict_of(self, data, writer, b=1) (Inherited from gmisclib.chunkio.chunk_w) source code
 
write_float(self, d, b=0) (Inherited from gmisclib.chunkio.chunk_w) source code
 
writechunk(self, ch, b=0) (Inherited from gmisclib.chunkio.chunk_w) source code
Class Variables
  __doc__ = """This writes stuff to a file."""
Method Details

__init__(self, fd, width=80)
(Constructor)

source code 
Overrides: chunk_w.__init__

stringwrite(self, ch, b=0)

source code 

ch is the chunk of text. b=1 to begin a new line.

Overrides: chunk_w.stringwrite

nl(self)

source code 
Overrides: chunk_w.nl

comment(self, comment)

source code 
Overrides: chunk_w.comment

close(self)

source code 
Overrides: chunk_w.close