def closerange(fd_low, fd_high): """Closes all file descriptors in [fd_low, fd_high), ignoring errors.""" rposix.closerange(fd_low, fd_high)