On this page
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
- Unix-only: Pairs with
os.set_blocking(fd, False).
REPL Inspect
from posix import get_blocking
help(get_blocking)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/ftruncate Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/get_inheritable Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib