Package cherrypy :: Package wsgiserver :: Module wsgiserver3 :: Class CP_BufferedWriter
[hide private]
[frames] | no frames]

Class CP_BufferedWriter

source code

    _pyio.IOBase --+            
                   |            
_pyio.BufferedIOBase --+        
                       |        
  _pyio._BufferedIOMixin --+    
                           |    
        _pyio.BufferedWriter --+
                               |
                              CP_BufferedWriter

Faux file object attached to a socket object.

Instance Methods [hide private]
 
write(self, b)
Write the given buffer to the IO stream.
source code
 
_flush_unlocked(self) source code

Inherited from _pyio.BufferedWriter: __init__, flush, seek, tell, truncate

Inherited from _pyio._BufferedIOMixin: __repr__, close, closed, detach, fileno, isatty, mode, name, raw, readable, seekable, writable

Inherited from _pyio.BufferedIOBase: read, read1, readinto

Inherited from _pyio.IOBase: __del__, __enter__, __exit__, __iter__, next, readline, readlines, writelines

Inherited from _pyio.IOBase (private): _checkClosed, _checkReadable, _checkSeekable, _checkWritable, _unsupported

Class Variables [hide private]

Inherited from _pyio.BufferedWriter (private): _warning_stack_offset

Inherited from _pyio.IOBase: __metaclass__

Method Details [hide private]

write(self, b)

source code 

Write the given buffer to the IO stream.

Return the number of bytes written, which is never less than len(b).

Raises BlockingIOError if the buffer is full and the underlying raw stream cannot accept more data at the moment.

Overrides: _pyio.BufferedIOBase.write
(inherited documentation)

_flush_unlocked(self)

source code 
Overrides: _pyio.BufferedWriter._flush_unlocked