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

Class chunk_w

source code


Instance Methods
 
__init__(self) source code
 
writechunk(self, ch, b=0) source code
 
write(self, ch, b=0) source code
 
nl(self) source code
 
comment(self, comment) source code
 
close(self) source code
 
write_None(self) source code
 
write_array_of(self, data, writer, b=0) source code
 
write_array(self, data, b=0, converter=<type 'str'>) source code
 
write_dict_of(self, data, writer, b=1) source code
 
write_dict(self, data, b=0, converter=<type 'str'>) 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...
source code
 
groupend(self, b=1) source code
 
write_NumArray(self, d, b=0, converter=<type 'str'>) source code
 
write_float(self, d, b=0) source code
 
stringwrite(self, ch, b=0) source code
Method Details

groupstart(self, contents, b=1, comment=None)

source code 

The 'contents' argument is conventionally a string containing 'a' for an internal array, 'g' for a group, 'd' for a dictionary... It describes the contents of the group. This is just used by the application to check what is in the group, so it could contain any chunk.