An iterator which buffers the elements of a container and periodically passes them as input to a writer.

Instance Variable write See __init__.
Instance Variable memoryBufferSize See __init__.
Instance Variable bufSize The number of bytes currently in the buffer. (type: int)
Instance Variable lines The buffer, which is a list of strings. (type: list of bytes)
Instance Variable iterator An iterator over a container of strings. (type: iterator which yields bytes)
Method __init__
Method __iter__ Return an iterator.
Method next Get the next string from the container, buffer it, and possibly send the buffer to the writer.
write =
See __init__.
memoryBufferSize =
See __init__.
bufSize =
The number of bytes currently in the buffer. (type: int)
lines =
The buffer, which is a list of strings. (type: list of bytes)
iterator =
An iterator over a container of strings. (type: iterator which yields bytes)
def __init__(self, write, iterable, memoryBufferSize=None): (source)
ParameterswriteA writer which is a callable that takes a list of strings. (type: callable that takes list of bytes)
iterableAn iterable container of strings. (type: iterable which yields bytes)
memoryBufferSizeThe number of bytes to buffer before flushing the buffer to the writer. (type: int or NoneType)
def __iter__(self): (source)

Return an iterator.

ReturnsAn iterator over strings. (type: iterator which yields bytes)
def next(self): (source)

Get the next string from the container, buffer it, and possibly send the buffer to the writer.

The contents of the buffer are written when it is full or when no further values are available from the container.

RaisesStopIterationWhen no further values are available from the container.
API Documentation for Twisted, generated by pydoctor at 2015-09-04 15:29:41.