On this page
  1. posix.get_blocking
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posix.get_blocking

Prev: posix.ftruncate | Up: posix | Next: posix.get_inheritable
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.get_blocking
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import get_blocking

Signature & Overview

posix.get_blocking(fd, /)

Get the blocking mode of the file descriptor.

Usage

import os

r, w = os.pipe()
try:
    assert os.get_blocking(r) is True
finally:
    os.close(r); os.close(w)

Gotchas

REPL Inspect

from posix import get_blocking
help(get_blocking)

Linked from

Related notes