Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | write |
def | writelines |
def | reset |
def | __getattr__ |
![]() | |
def | encode |
def | decode |
Data Fields | |
stream | |
errors | |
def __init__ | ( | self, | |
stream, | |||
errors = 'strict' |
|||
) |
Creates a StreamWriter instance. stream must be a file-like object open for writing (binary) data. The StreamWriter may implement different error handling schemes by providing the errors keyword argument. These parameters are defined: 'strict' - raise a ValueError (or a subclass) 'ignore' - ignore the character and continue with the next 'replace'- replace with a suitable replacement character
Definition at line 114 of file codecs.py.
def __getattr__ | ( | self, | |
name, | |||
getattr = getattr |
|||
) |
Inherit all other methods from the underlying stream.
Definition at line 160 of file codecs.py.
References StreamWriter.stream.
def reset | ( | self) |
def write | ( | self, | |
object | |||
) |
Writes the object's contents encoded to self.stream.
Definition at line 133 of file codecs.py.
References Codec.encode(), StreamRecoder.encode, and StreamWriter.errors.
def writelines | ( | self, | |
list | |||
) |
Writes the concatenated list of strings to the stream using .write().
Definition at line 140 of file codecs.py.
References dospath.join(), Pickler.write, openrsrc.write(), _Hqxcoderengine.write(), StreamWriter.write(), _Rlecoderengine.write(), InteractiveInterpreter.write(), BinHex.write(), Marshaller.write, and file_wrapper.write.