PyDocs

Nav

Generic Operating System Services

TextIOBase

io

class (source)
Base class for text I/O.

This class provides a character and line based interface to stream
I/O. There is no readinto method because Python's character strings
are immutable.
Members of TextIOBase

b

buffer
The underlying binary buffer (a BufferedIOBase or RawIOBase instance) that TextIOBase deals with.

d

detach
Separate the underlying buffer from the TextIOBase and return it.

e

encoding
Encoding of the text stream.
errors
The error setting of the decoder or encoder.

n

newlines
Line endings translated so far.

r

read
Read at most size characters from stream.
readline
Read until newline or EOF.

s

seek
Change the stream position to the given byte offset.

t

tell
Return current stream position.

w

write
Write string s to stream.
0 Examples
No examples for io/TextIOBase.
See Also
No see-alsos for io/TextIOBase
0 Notes
No notes for TextIOBase