os.set_handle_inheritable()

os.set_handle_inheritable(handle, inheritable) Set the “inheritable” flag of the specified handle. Availability: Windows.

os.set_blocking()

os.set_blocking(fd, blocking) Set the blocking mode of the specified file descriptor. Set the O_NONBLOCK flag if blocking is False, clear the flag otherwise. See also get_blocking() and socket.socket.setblocking(). Availability: Unix. New in version 3.5.

os.setxattr()

os.setxattr(path, attribute, value, flags=0, *, follow_symlinks=True) Set the extended filesystem attribute attribute on path to value. attribute must be a bytes or str with no embedded NULs. If it is a str, it is encoded with the filesystem encoding. flags may be XATTR_REPLACE or XATTR_CREATE. If XATTR_REPLACE is given and the attribute does not exist, EEXISTS will be raised. If XATTR_CREATE is given and the attribute already exists, the attribute will not be created and ENODATA will be rai

os.setuid()

os.setuid(uid) Set the current process’s user id. Availability: Unix.

os.setsid()

os.setsid() Call the system call setsid(). See the Unix manual for the semantics. Availability: Unix.

os.setreuid()

os.setreuid(ruid, euid) Set the current process’s real and effective user ids. Availability: Unix.

os.setresuid()

os.setresuid(ruid, euid, suid) Set the current process’s real, effective, and saved user ids. Availability: Unix. New in version 3.2.

os.setresgid()

os.setresgid(rgid, egid, sgid) Set the current process’s real, effective, and saved group ids. Availability: Unix. New in version 3.2.

os.setregid()

os.setregid(rgid, egid) Set the current process’s real and effective group ids. Availability: Unix.

os.setpriority()

os.setpriority(which, who, priority) Set program scheduling priority. The value which is one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER, and who is interpreted relative to which (a process identifier for PRIO_PROCESS, process group identifier for PRIO_PGRP, and a user ID for PRIO_USER). A zero value for who denotes (respectively) the calling process, the process group of the calling process, or the real user ID of the calling process. priority is a value in the range -20 to 19. The default pri