On this page
io.BlockingIOError
Up: io | Next: io.BufferedIOBase
Rel: io.BufferedIOBase, io.BufferedRandom, io.BufferedReader, io.BufferedRWPair
Ref: docs.python.org โ io.BlockingIOError
Tags: #public #python3 #stdlib #io
Import
import io
from io import BlockingIOError
Signature & Overview
io.BlockingIOError(...)
I/O operation would block.
Methods & Attributes
BlockingIOError.add_note(self, note, /)โ Add a note to the exceptionBlockingIOError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import io
# Raised by non-blocking raw streams when an operation would block
assert issubclass(io.BlockingIOError, OSError)
Gotchas
- Same class as built-in
BlockingIOError: Inspectexc.characters_writtento see how many bytes were written before blocking.
REPL Inspect
from io import BlockingIOError
help(BlockingIOError)
Linked from
- tuts/python3/stdlib_module/io
- tuts/python3/stdlib_module/io/BufferedIOBase
- tuts/python3/stdlib_module/io/BufferedRandom
- tuts/python3/stdlib_module/io/BufferedReader
- tuts/python3/stdlib_module/io/BufferedRWPair
- tuts/python3/stdlib_module/io/BufferedWriter
- tuts/python3/stdlib_module/io/BytesIO
- tuts/python3/stdlib_module/io/FileIO
- tuts/python3/stdlib_module/io/IncrementalNewlineDecoder
- tuts/python3/stdlib_module/io/IOBase
- tuts/python3/stdlib_module/io/open
- tuts/python3/stdlib_module/io/open_code
- tuts/python3/stdlib_module/io/RawIOBase
- tuts/python3/stdlib_module/io/Reader
- tuts/python3/stdlib_module/io/StringIO
- tuts/python3/stdlib_module/io/text_encoding
- tuts/python3/stdlib_module/io/TextIOBase
- tuts/python3/stdlib_module/io/TextIOWrapper
- tuts/python3/stdlib_module/io/UnsupportedOperation
- tuts/python3/stdlib_module/io/Writer
Related notes
- tuts/python3/stdlib_module/io/BufferedIOBase Linked here; links to this page; shared tags: #io, #stdlib
- tuts/python3/stdlib_module/io/BufferedRandom Linked here; links to this page; shared tags: #io, #stdlib
- tuts/python3/stdlib_module/io/BufferedReader Linked here; links to this page; shared tags: #io, #stdlib
- tuts/python3/stdlib_module/io/BufferedRWPair Linked here; links to this page; shared tags: #io, #stdlib
- tuts/python3/stdlib_module/io Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/io/BufferedWriter links to this page; shared tags: #io, #stdlib
- tuts/python3/stdlib_module/io/BytesIO links to this page; shared tags: #io, #stdlib
- tuts/python3/stdlib_module/io/FileIO links to this page; shared tags: #io, #stdlib
- tuts/python3/stdlib_module/io/IncrementalNewlineDecoder links to this page; shared tags: #io, #stdlib
- tuts/python3/stdlib_module/io/IOBase links to this page; shared tags: #io, #stdlib