| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
GenericStream
GenericStream(stream[, buffering])
Represents a buffered stream
|
|||
|
|||
|
|||
| a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
| bool |
|
||
| the next value, or raise StopIteration |
|
||
| str |
|
||
| str |
|
||
| str |
|
||
| list |
|
||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
| closed | |||
| name | |||
| softspace | |||
|
Inherited from |
|||
|
|||
|
s.close() Close the stream The call is passed to the underlying octet stream. |
s.fileno() Determine underlying fileno |
s.flush() Flush the write buffer |
s.isatty() Does the stream refer to a tty?
|
s.read([size]) -> str Reads a specified amount of bytes (at max) from the stream Parameters
Types
|
s.read_exact([size]) -> str Read exactly size bytes from stream, except on EOF Parameters
Types
|
s.readline([size]) -> line Read a line from the stream Parameters
Types
|
s.readlines([size]) -> [line, ...] Read all lines from the stream Parameters
Types
|
s.write(data) Write data into the stream Parameters
Types
|
s.writelines(lines) Write lines to the stream Parameters
Types
|
s.xreadlines() Iterator of the lines Deprecated: Use the iterator API instead |
| Home | Trees | Indices | Help |
|
|---|