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

io.UnsupportedOperation

Prev: io.TextIOWrapper | Up: io | Next: io.Writer
Rel: io.BlockingIOError, io.BufferedIOBase, io.BufferedRandom, io.BufferedReader
Ref: docs.python.org โ€” io.UnsupportedOperation
Tags: #public #python3 #stdlib #io


Import

import io
from io import UnsupportedOperation

Signature & Overview

io.UnsupportedOperation(...)

io.UnsupportedOperation class.

Methods & Attributes

Usage

import io

buf = io.StringIO("hi")
try:
    buf.fileno()
except io.UnsupportedOperation:
    assert True

Gotchas

REPL Inspect

from io import UnsupportedOperation
help(UnsupportedOperation)

Linked from

Related notes