class twisted.mail.pop3._IteratorBuffer: (source)
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. |
Instance Variable | lines | The buffer, which is a list of strings. |
Instance Variable | iterator | An iterator over a container of strings. |
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. |
Return an iterator.
Returns | An iterator over strings. (type: iterator which yields bytes ) |
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.
Raises | StopIteration | When no further values are available from the container. |