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

io.Writer

Prev: io.UnsupportedOperation | Up: io
Rel: io.BlockingIOError, io.BufferedIOBase, io.BufferedRandom, io.BufferedReader
Ref: docs.python.org — io.Writer
Tags: #public #python3 #stdlib #io


Import

import io
from io import Writer

Signature & Overview

io.Writer()

Protocol for simple I/O writer instances.

Methods & Attributes

Usage

import io

# Python 3.14+ typing Protocol for writable streams
assert hasattr(io, "Writer")

Gotchas

REPL Inspect

from io import Writer
help(Writer)

Linked from

Related notes