Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | read |
def | readline |
def | readlines |
def | write |
def | writelines |
def | reset |
def | __getattr__ |
Data Fields | |
stream | |
reader | |
writer | |
errors | |
Static Public Attributes | |
string | encoding = 'unknown' |
StreamReaderWriter instances allow wrapping streams which work in both read and write modes. The design is such that one can use the factory functions returned by the codec.lookup() function to construct the instance.
def __init__ | ( | self, | |
stream, | |||
Reader, | |||
Writer, | |||
errors = 'strict' |
|||
) |
Creates a StreamReaderWriter instance. stream must be a Stream-like object. Reader, Writer must be factory functions or classes providing the StreamReader, StreamWriter interface resp. Error handling is done in the same way as defined for the StreamWriter/Readers.
Definition at line 306 of file codecs.py.
def __getattr__ | ( | self, | |
name, | |||
getattr = getattr |
|||
) |
Inherit all other methods from the underlying stream.
Definition at line 350 of file codecs.py.
References StreamWriter.stream, StreamReader.stream, and StreamReaderWriter.stream.
def read | ( | self, | |
size = -1 |
|||
) |
def readline | ( | self, | |
size = None |
|||
) |
def readlines | ( | self, | |
sizehint = None |
|||
) |
def reset | ( | self) |
Definition at line 344 of file codecs.py.
References StreamReaderWriter.__getattr__().
def write | ( | self, | |
data | |||
) |
def writelines | ( | self, | |
list | |||
) |