Trees | Indices | Help |
---|
|
object --+ | _io._IOBase --+ | _io._RawIOBase --+ | _io.FileIO --+ | FileWriter
Generic Writer class. All writers should inherit from this class.
|
|||
FileWriterError Exception raised if an error occurs in the definition or the execution of a Writer. |
|||
FilePreProcessingError Exception raised if an error occurs in the handling of the preprocessor tags '##' in the template file. |
|
|||
|
|||
int |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
supported_preprocessor_commands =
|
|||
preprocessor_command_re = re.compile(r'\s
|
|||
preprocessor_endif_re = re.compile(r'\s
|
|
|||
Inherited from Inherited from |
|
Initialize file to write to
|
Write array of bytes b, return number written. Only makes one system call, so not all of the data may be written. The number of bytes actually written is returned. In non-blocking mode, returns None if the write would block.
|
Extends the regular file.writeline() function to write out nicely formatted code. When defining a context, then the lines will be preprocessed to apply possible conditional statements on the content of the template depending on the contextual variables specified.
|
|
preprocessor_command_re
|
preprocessor_endif_re
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Mar 25 11:18:47 2021 | http://epydoc.sourceforge.net |