Trees | Indices | Help |
---|
|
object --+ | WriteStream
A mixin module which represents a stream of data that can be written to.
Any class that mixes in this module can be used by a to pump data from a to it.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
write_queue_max_size = property(fset= set_write_queue_max_size)
|
|
Write some data to the stream. The data is put on an internal write queue, and the write actually happens asynchronously. To avoid running out of memory by putting too much on the write queue, check the method before writing. This is done automatically if using a . param [Buffer]. The buffer to write. |
Set the maximum size of the write queue. You will still be able to write to the stream even if there is more data than this in the write queue. This is used as an indicator by classes such as to provide flow control. Keyword arguments:
|
Is the write queue full? return True if there are more bytes in the write queue than the max write queue size.
|
Set a drain handler on the stream. If the write queue is full, then the handler will be called when the write queue has been reduced to maxSize / 2. See for an example of this being used. Keyword arguments:
|
Set an execption handler on the stream. Keyword arguments:
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Jan 13 17:19:26 2013 | http://epydoc.sourceforge.net |