On this page
  1. io.TextIOBase
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

io.TextIOBase

Prev: io.text_encoding | Up: io | Next: io.TextIOWrapper
Rel: io.BlockingIOError, io.BufferedIOBase, io.BufferedRandom, io.BufferedReader
Ref: docs.python.org — io.TextIOBase
Tags: #public #python3 #stdlib #io


Import

import io
from io import TextIOBase

Signature & Overview

io.TextIOBase()

Base class for text I/O.

Methods & Attributes

Usage

import io

assert isinstance(io.StringIO("hi"), io.TextIOBase)

Gotchas

REPL Inspect

from io import TextIOBase
help(TextIOBase)

Linked from

Related notes