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

asyncio.IncompleteReadError

Prev: asyncio.Handle | Up: asyncio | Next: asyncio.iscoroutine
Rel: asyncio.AbstractEventLoop, asyncio.AbstractServer, asyncio.all_tasks, asyncio.as_completed
Ref: docs.python.org โ€” asyncio.IncompleteReadError
Tags: #public #python3 #stdlib #asyncio


Import

import asyncio
from asyncio import IncompleteReadError

Signature & Overview

asyncio.IncompleteReadError(partial, expected)

Incomplete read error. Attributes: - partial: read bytes string before the end of stream was reached - expected: total number of expected bytes (or None if unknown)

Methods & Attributes

Usage

import asyncio

exc = asyncio.IncompleteReadError(partial=b"abc", expected=10)
assert exc.partial == b"abc" and exc.expected == 10

Gotchas

REPL Inspect

from asyncio import IncompleteReadError
help(IncompleteReadError)

Linked from

Related notes