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

posix.closerange

Prev: posix.close | Up: posix | Next: posix.confstr
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.closerange
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import closerange

Signature & Overview

posix.closerange(fd_low, fd_high, /)

Closes all file descriptors in [fd_low, fd_high), ignoring errors.

Usage

import os

# Closes all open file descriptors in [fd_low, fd_high), ignoring errors
assert callable(os.closerange)

Gotchas

REPL Inspect

from posix import closerange
help(closerange)

Linked from

Related notes