Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Python 3.11.3

Contenu du module « os »

Liste des classes du module os

Nom de la classe Description
DirEntry
GenericAlias Represent a PEP 585 generic type [extrait de GenericAlias.__doc__]
Mapping A Mapping is a generic container for associating key/value [extrait de Mapping.__doc__]
MutableMapping A MutableMapping is a generic container for associating [extrait de MutableMapping.__doc__]
PathLike Abstract base class for implementing the file system path protocol. [extrait de PathLike.__doc__]
sched_param Currently has only one field: sched_priority [extrait de sched_param.__doc__]
stat_result stat_result: Result from stat, fstat, or lstat. [extrait de stat_result.__doc__]
statvfs_result statvfs_result: Result from statvfs or fstatvfs. [extrait de statvfs_result.__doc__]
terminal_size A tuple of (columns, lines) for holding terminal window size [extrait de terminal_size.__doc__]
times_result times_result: Result from os.times(). [extrait de times_result.__doc__]
uname_result uname_result: Result from os.uname(). [extrait de uname_result.__doc__]
waitid_result waitid_result: Result from waitid. [extrait de waitid_result.__doc__]

Liste des fonctions du module os

Signature de la fonction Description
abort() Abort the interpreter immediately. [extrait de abort.__doc__]
access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True) Use the real uid/gid to test for access to a path. [extrait de access.__doc__]
chdir(path: str | bytes | os.PathLike) -> None Cette fonction permet de changer le répertoire courant de travail. Change the current working directory to the specified path. [extrait de chdir.__doc__]
chmod(path: str | bytes | os.PathLike, mode: int, *, dir_fd=None, follow_symlinks=True) -> None Cette fonction permet de changer les droits d'accès d'un fichier ou d'un dossier (chmod = change mode). Change the access permissions of a file. [extrait de chmod.__doc__]
chown(path, uid, gid, *, dir_fd=None, follow_symlinks=True) Change the owner and group id of path to the numeric uid and gid.\ [extrait de chown.__doc__]
chroot(path) Change root directory to path. [extrait de chroot.__doc__]
close(fd) Close a file descriptor. [extrait de close.__doc__]
closerange(fd_low, fd_high) Closes all file descriptors in [fd_low, fd_high), ignoring errors. [extrait de closerange.__doc__]
confstr(name) Return a string-valued system configuration variable. [extrait de confstr.__doc__]
copy_file_range(src, dst, count, offset_src=None, offset_dst=None) Copy count bytes from one file descriptor to another. [extrait de copy_file_range.__doc__]
cpu_count() Return the number of CPUs in the system; return None if indeterminable. [extrait de cpu_count.__doc__]
ctermid() Return the name of the controlling terminal for this process. [extrait de ctermid.__doc__]
device_encoding(fd) Return a string describing the encoding of a terminal's file descriptor. [extrait de device_encoding.__doc__]
dup(fd) Return a duplicate of a file descriptor. [extrait de dup.__doc__]
dup2(fd, fd2, inheritable=True) Duplicate file descriptor. [extrait de dup2.__doc__]
eventfd(initval, flags=524288) Creates and returns an event notification file descriptor. [extrait de eventfd.__doc__]
eventfd_read(fd) Read eventfd value [extrait de eventfd_read.__doc__]
eventfd_write(fd, value) Write eventfd value. [extrait de eventfd_write.__doc__]
execl(file, *args) execl(file, *args) [extrait de execl.__doc__]
execle(file, *args) execle(file, *args, env) [extrait de execle.__doc__]
execlp(file, *args) execlp(file, *args) [extrait de execlp.__doc__]
execlpe(file, *args) execlpe(file, *args, env) [extrait de execlpe.__doc__]
execv(path, argv) Execute an executable path with arguments, replacing current process. [extrait de execv.__doc__]
execve(path, argv, env) Execute an executable path with arguments, replacing current process. [extrait de execve.__doc__]
execvp(file, args) execvp(file, args) [extrait de execvp.__doc__]
execvpe(file, args, env) execvpe(file, args, env) [extrait de execvpe.__doc__]
fchdir(dir_fd: int) -> None Cette fonction permet de changer le répertoire courant de travail Change to the directory of the given file descriptor. [extrait de fchdir.__doc__]
fchmod(fd: int, mode: int) -> None Cette fonction permet de changer les droits d'accès d'un fichier ou d'un dossier (fchmod = file change mode). Change the access permissions of the file given by file descriptor fd. [extrait de fchmod.__doc__]
fchown(fd, uid, gid) Change the owner and group id of the file specified by file descriptor. [extrait de fchown.__doc__]
fdatasync(fd) Force write of fd to disk without forcing update of metadata. [extrait de fdatasync.__doc__]
fdopen(fd, mode='r', buffering=-1, encoding=None, *args, **kwargs)
fork() Fork a child process. [extrait de fork.__doc__]
forkpty() Fork a new process with a new pseudo-terminal as controlling tty. [extrait de forkpty.__doc__]
fpathconf(fd, name) Return the configuration limit name for the file descriptor fd. [extrait de fpathconf.__doc__]
fsdecode(filename) Decode filename (an os.PathLike, bytes, or str) from the filesystem [extrait de fsdecode.__doc__]
fsencode(filename) Encode filename (an os.PathLike, bytes, or str) to the filesystem [extrait de fsencode.__doc__]
fspath(path) Return the file system path representation of the object. [extrait de fspath.__doc__]
fstat(fd) Perform a stat system call on the given file descriptor. [extrait de fstat.__doc__]
fstatvfs(fd) Perform an fstatvfs system call on the given fd. [extrait de fstatvfs.__doc__]
fsync(fd) Force write of fd to disk. [extrait de fsync.__doc__]
ftruncate(fd, length) Truncate a file, specified by file descriptor, to a specific length. [extrait de ftruncate.__doc__]
fwalk(top='.', topdown=True, onerror=None, *, follow_symlinks=False, dir_fd=None) Directory tree generator. [extrait de fwalk.__doc__]
get_blocking(fd) Get the blocking mode of the file descriptor. [extrait de get_blocking.__doc__]
get_exec_path(env=None) Returns the sequence of directories that will be searched for the [extrait de get_exec_path.__doc__]
get_inheritable(fd) Get the close-on-exe flag of the specified file descriptor. [extrait de get_inheritable.__doc__]
get_terminal_size Return the size of the terminal window as (columns, lines). [extrait de get_terminal_size.__doc__]
getcwd() -> str Cette fonction permet de récupérer le chemin du répertoire de travail courant (getcwd = get current working directory) Return a unicode string representing the current working directory. [extrait de getcwd.__doc__]
getcwdb() Return a bytes string representing the current working directory. [extrait de getcwdb.__doc__]
getegid() Return the current process's effective group id. [extrait de getegid.__doc__]
getenv(key, default=None) Get an environment variable, return None if it doesn't exist. [extrait de getenv.__doc__]
getenvb(key, default=None) Get an environment variable, return None if it doesn't exist. [extrait de getenvb.__doc__]
geteuid() Return the current process's effective user id. [extrait de geteuid.__doc__]
getgid() Return the current process's group id. [extrait de getgid.__doc__]
getgrouplist(user, group) Returns a list of groups to which a user belongs. [extrait de getgrouplist.__doc__]
getgroups() Return list of supplemental group IDs for the process. [extrait de getgroups.__doc__]
getloadavg() Return average recent system load information. [extrait de getloadavg.__doc__]
getlogin() Return the actual login name. [extrait de getlogin.__doc__]
getpgid(pid) Call the system call getpgid(), and return the result. [extrait de getpgid.__doc__]
getpgrp() Return the current process group id. [extrait de getpgrp.__doc__]
getpid() Return the current process id. [extrait de getpid.__doc__]
getppid() Return the parent's process id. [extrait de getppid.__doc__]
getpriority(which, who) Return program scheduling priority. [extrait de getpriority.__doc__]
getrandom(size, flags=0) Obtain a series of random bytes. [extrait de getrandom.__doc__]
getresgid() Return a tuple of the current process's real, effective, and saved group ids. [extrait de getresgid.__doc__]
getresuid() Return a tuple of the current process's real, effective, and saved user ids. [extrait de getresuid.__doc__]
getsid(pid) Call the system call getsid(pid) and return the result. [extrait de getsid.__doc__]
getuid() Return the current process's user id. [extrait de getuid.__doc__]
getxattr(path, attribute, *, follow_symlinks=True) Return the value of extended attribute attribute on path. [extrait de getxattr.__doc__]
initgroups(username, gid) Initialize the group access list. [extrait de initgroups.__doc__]
isatty(fd) Return True if the fd is connected to a terminal. [extrait de isatty.__doc__]
kill(pid, signal) Kill a process with a signal. [extrait de kill.__doc__]
killpg(pgid, signal) Kill a process group with a signal. [extrait de killpg.__doc__]
lchown(path, uid, gid) Change the owner and group id of path to the numeric uid and gid. [extrait de lchown.__doc__]
link(src, dst, *, src_dir_fd=None, dst_dir_fd=None, follow_symlinks=True) Create a hard link to a file. [extrait de link.__doc__]
listdir(path=None) Return a list containing the names of the files in the directory. [extrait de listdir.__doc__]
listxattr(path=None, *, follow_symlinks=True) Return a list of extended attributes on path. [extrait de listxattr.__doc__]
lockf(fd, command, length) Apply, test or remove a POSIX lock on an open file descriptor. [extrait de lockf.__doc__]
login_tty(fd) Prepare the tty of which fd is a file descriptor for a new login session. [extrait de login_tty.__doc__]
lseek(fd, position, how) Set the position of a file descriptor. Return the new position. [extrait de lseek.__doc__]
lstat(path, *, dir_fd=None) Perform a stat system call on the given path, without following symbolic links. [extrait de lstat.__doc__]
major(device) Extracts a device major number from a raw device number. [extrait de major.__doc__]
makedev(major, minor) Composes a raw device number from the major and minor device numbers. [extrait de makedev.__doc__]
makedirs(path: str | bytes | os.PathLike, mode: int = 0o777, exist_ok: bool = False) -> None Cette fonction permet de créer un nouveau dossier mais aussi les dossiers intermédiaires qui pourraient ne pas exister. makedirs(name [, mode=0o777][, exist_ok=False]) [extrait de makedirs.__doc__]
memfd_create(name, flags=1)
minor(device) Extracts a device minor number from a raw device number. [extrait de minor.__doc__]
mkdir(path: str | bytes | os.PathLike, mode: int = 0o777, *, dir_fd: int = None) -> None Cette fonction permet de créer un nouveau dossier (mkdir = MaKe DIRectory). Create a directory. [extrait de mkdir.__doc__]
mkfifo(path, mode=438, *, dir_fd=None) Create a "fifo" (a POSIX named pipe). [extrait de mkfifo.__doc__]
mknod(path, mode=384, device=0, *, dir_fd=None) Create a node in the file system. [extrait de mknod.__doc__]
nice(increment) Add increment to the priority of process and return the new priority. [extrait de nice.__doc__]
open(path, flags, mode=511, *, dir_fd=None) Open a file for low level IO. Returns a file descriptor (integer). [extrait de open.__doc__]
openpty() Open a pseudo-terminal. [extrait de openpty.__doc__]
pathconf(path, name) Return the configuration limit name for the file or directory path. [extrait de pathconf.__doc__]
pidfd_open(pid, flags=0) Return a file descriptor referring to the process *pid*. [extrait de pidfd_open.__doc__]
pipe() Create a pipe. [extrait de pipe.__doc__]
pipe2(flags) Create a pipe with flags set atomically. [extrait de pipe2.__doc__]
popen(cmd, mode='r', buffering=-1)
posix_fadvise(fd, offset, length, advice) Announce an intention to access data in a specific pattern. [extrait de posix_fadvise.__doc__]
posix_fallocate(fd, offset, length) Ensure a file has allocated at least a particular number of bytes on disk. [extrait de posix_fallocate.__doc__]
posix_spawn Execute the program specified by path in a new process. [extrait de posix_spawn.__doc__]
posix_spawnp Execute the program specified by path in a new process. [extrait de posix_spawnp.__doc__]
pread(fd, length, offset) Read a number of bytes from a file descriptor starting at a particular offset. [extrait de pread.__doc__]
preadv(fd, buffers, offset, flags=0) Reads from a file descriptor into a number of mutable bytes-like objects. [extrait de preadv.__doc__]
putenv(name, value) Change or add an environment variable. [extrait de putenv.__doc__]
pwrite(fd, buffer, offset) Write bytes to a file descriptor starting at a particular offset. [extrait de pwrite.__doc__]
pwritev(fd, buffers, offset, flags=0) Writes the contents of bytes-like objects to a file descriptor at a given offset. [extrait de pwritev.__doc__]
read(fd, length) Read from a file descriptor. Returns a bytes object. [extrait de read.__doc__]
readlink(path, *, dir_fd=None) Return a string representing the path to which the symbolic link points. [extrait de readlink.__doc__]
readv(fd, buffers) Read from a file descriptor fd into an iterable of buffers. [extrait de readv.__doc__]
register_at_fork Register callables to be called when forking a new process. [extrait de register_at_fork.__doc__]
remove(path, *, dir_fd=None) Remove a file (same as unlink()). [extrait de remove.__doc__]
removedirs(name) removedirs(name) [extrait de removedirs.__doc__]
removexattr(path, attribute, *, follow_symlinks=True) Remove extended attribute attribute on path. [extrait de removexattr.__doc__]
rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None) Rename a file or directory. [extrait de rename.__doc__]
renames(old, new) renames(old, new) [extrait de renames.__doc__]
replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None) Rename a file or directory, overwriting the destination. [extrait de replace.__doc__]
rmdir(path: str | bytes | os.PathLike, *, dir_fd: int = None) -> None Cette fonction permet de supprimer le dossier spécifié en paramètre (rmdir = ReMove DIRectory). Remove a directory. [extrait de rmdir.__doc__]
scandir(path=None) Return an iterator of DirEntry objects for given path. [extrait de scandir.__doc__]
sched_get_priority_max(policy) Get the maximum scheduling priority for policy. [extrait de sched_get_priority_max.__doc__]
sched_get_priority_min(policy) Get the minimum scheduling priority for policy. [extrait de sched_get_priority_min.__doc__]
sched_getaffinity(pid) Return the affinity of the process identified by pid (or the current process if zero). [extrait de sched_getaffinity.__doc__]
sched_getparam(pid) Returns scheduling parameters for the process identified by pid. [extrait de sched_getparam.__doc__]
sched_getscheduler(pid) Get the scheduling policy for the process identified by pid. [extrait de sched_getscheduler.__doc__]
sched_rr_get_interval(pid) Return the round-robin quantum for the process identified by pid, in seconds. [extrait de sched_rr_get_interval.__doc__]
sched_setaffinity(pid, mask) Set the CPU affinity of the process identified by pid to mask. [extrait de sched_setaffinity.__doc__]
sched_setparam(pid, param) Set scheduling parameters for the process identified by pid. [extrait de sched_setparam.__doc__]
sched_setscheduler(pid, policy, param) Set the scheduling policy for the process identified by pid. [extrait de sched_setscheduler.__doc__]
sched_yield() Voluntarily relinquish the CPU. [extrait de sched_yield.__doc__]
sendfile(out_fd, in_fd, offset, count) Copy count bytes from file descriptor in_fd to file descriptor out_fd. [extrait de sendfile.__doc__]
set_blocking(fd, blocking) Set the blocking mode of the specified file descriptor. [extrait de set_blocking.__doc__]
set_inheritable(fd, inheritable) Set the inheritable flag of the specified file descriptor. [extrait de set_inheritable.__doc__]
setegid(egid) Set the current process's effective group id. [extrait de setegid.__doc__]
seteuid(euid) Set the current process's effective user id. [extrait de seteuid.__doc__]
setgid(gid) Set the current process's group id. [extrait de setgid.__doc__]
setgroups(groups) Set the groups of the current process to list. [extrait de setgroups.__doc__]
setpgid(pid, pgrp) Call the system call setpgid(pid, pgrp). [extrait de setpgid.__doc__]
setpgrp() Make the current process the leader of its process group. [extrait de setpgrp.__doc__]
setpriority(which, who, priority) Set program scheduling priority. [extrait de setpriority.__doc__]
setregid(rgid, egid) Set the current process's real and effective group ids. [extrait de setregid.__doc__]
setresgid(rgid, egid, sgid) Set the current process's real, effective, and saved group ids. [extrait de setresgid.__doc__]
setresuid(ruid, euid, suid) Set the current process's real, effective, and saved user ids. [extrait de setresuid.__doc__]
setreuid(ruid, euid) Set the current process's real and effective user ids. [extrait de setreuid.__doc__]
setsid() Call the system call setsid(). [extrait de setsid.__doc__]
setuid(uid) Set the current process's user id. [extrait de setuid.__doc__]
setxattr(path, attribute, value, flags=0, *, follow_symlinks=True) Set extended attribute attribute on path to value. [extrait de setxattr.__doc__]
spawnl(mode, file, *args) spawnl(mode, file, *args) -> integer [extrait de spawnl.__doc__]
spawnle(mode, file, *args) spawnle(mode, file, *args, env) -> integer [extrait de spawnle.__doc__]
spawnlp(mode, file, *args) spawnlp(mode, file, *args) -> integer [extrait de spawnlp.__doc__]
spawnlpe(mode, file, *args) spawnlpe(mode, file, *args, env) -> integer [extrait de spawnlpe.__doc__]
spawnv(mode, file, args) spawnv(mode, file, args) -> integer [extrait de spawnv.__doc__]
spawnve(mode, file, args, env) spawnve(mode, file, args, env) -> integer [extrait de spawnve.__doc__]
spawnvp(mode, file, args) spawnvp(mode, file, args) -> integer [extrait de spawnvp.__doc__]
spawnvpe(mode, file, args, env) spawnvpe(mode, file, args, env) -> integer [extrait de spawnvpe.__doc__]
splice(src, dst, count, offset_src=None, offset_dst=None, flags=0) Transfer count bytes from one pipe to a descriptor or vice versa. [extrait de splice.__doc__]
stat(path, *, dir_fd=None, follow_symlinks=True) Perform a stat system call on the given path. [extrait de stat.__doc__]
statvfs(path) Perform a statvfs system call on the given path. [extrait de statvfs.__doc__]
strerror(code) Translate an error code to a message string. [extrait de strerror.__doc__]
symlink(src, dst, target_is_directory=False, *, dir_fd=None) Create a symbolic link pointing to src named dst. [extrait de symlink.__doc__]
sync() Force write of everything to disk. [extrait de sync.__doc__]
sysconf(name) Return an integer-valued system configuration variable. [extrait de sysconf.__doc__]
system(command) Execute the command in a subshell. [extrait de system.__doc__]
tcgetpgrp(fd) Return the process group associated with the terminal specified by fd. [extrait de tcgetpgrp.__doc__]
tcsetpgrp(fd, pgid) Set the process group associated with the terminal specified by fd. [extrait de tcsetpgrp.__doc__]
times() Return a collection containing process timing information. [extrait de times.__doc__]
truncate(path, length) Truncate a file, specified by path, to a specific length. [extrait de truncate.__doc__]
ttyname(fd) Return the name of the terminal device connected to 'fd'. [extrait de ttyname.__doc__]
umask(mask) Set the current numeric umask and return the previous umask. [extrait de umask.__doc__]
uname() Return an object identifying the current operating system. [extrait de uname.__doc__]
unlink(path, *, dir_fd=None) Remove a file (same as remove()). [extrait de unlink.__doc__]
unsetenv(name) Delete an environment variable. [extrait de unsetenv.__doc__]
urandom(size) Return a bytes object containing random bytes suitable for cryptographic use. [extrait de urandom.__doc__]
utime Set the access and modified time of path. [extrait de utime.__doc__]
wait() Wait for completion of a child process. [extrait de wait.__doc__]
wait3(options) Wait for completion of a child process. [extrait de wait3.__doc__]
wait4(pid, options) Wait for completion of a specific child process. [extrait de wait4.__doc__]
waitid(idtype, id, options) Returns the result of waiting for a process or processes. [extrait de waitid.__doc__]
waitpid(pid, options) Wait for completion of a given child process. [extrait de waitpid.__doc__]
waitstatus_to_exitcode(status) Convert a wait status to an exit code. [extrait de waitstatus_to_exitcode.__doc__]
walk(top, topdown=True, onerror=None, followlinks=False) Directory tree generator. [extrait de walk.__doc__]
WCOREDUMP(status) Return True if the process returning status was dumped to a core file. [extrait de WCOREDUMP.__doc__]
WEXITSTATUS(status) Return the process return code from status. [extrait de WEXITSTATUS.__doc__]
WIFCONTINUED(status) Return True if a particular process was continued from a job control stop. [extrait de WIFCONTINUED.__doc__]
WIFEXITED(status) Return True if the process returning status exited via the exit() system call. [extrait de WIFEXITED.__doc__]
WIFSIGNALED(status) Return True if the process returning status was terminated by a signal. [extrait de WIFSIGNALED.__doc__]
WIFSTOPPED(status) Return True if the process returning status was stopped. [extrait de WIFSTOPPED.__doc__]
write(fd, data) Write a bytes object to a file descriptor. [extrait de write.__doc__]
writev(fd, buffers) Iterate over buffers, and write the contents of each to a file descriptor. [extrait de writev.__doc__]
WSTOPSIG(status) Return the signal that stopped the process that provided the status value. [extrait de WSTOPSIG.__doc__]
WTERMSIG(status) Return the signal that terminated the process that provided the status value. [extrait de WTERMSIG.__doc__]

Liste des variables globales du module os

Nom de la variable globale Valeur
altsep None
CLD_CONTINUED 6
CLD_DUMPED 3
CLD_EXITED 1
CLD_KILLED 2
CLD_STOPPED 5
CLD_TRAPPED 4
confstr_names {'CS_GNU_LIBC_VERSION': 2, 'CS_GNU_LIBPTHREAD_VERSION': 3, 'CS_LFS64_CFLAGS': 1004, 'CS_LFS64_LDFLAGS': 1005, 'CS_LFS64_LIBS': 1006, 'CS_LFS64_LINTFLAGS': 1007, 'CS_LFS_CFLAGS': 1000, 'CS_LFS_LDFLAGS': 1001, 'CS_LFS_LIBS': 1002, 'CS_LFS_LINTFLAGS': 1003, 'CS_PATH': 0, 'CS_XBS5_ILP32_OFF32_CFLAGS': 1100, 'CS_XBS5_ILP32_OFF32_LDFLAGS': 1101, 'CS_XBS5_ILP32_OFF32_LIBS': 1102, 'CS_XBS5_ILP32_OFF32_LINTFLAGS': 1103, 'CS_XBS5_ILP32_OFFBIG_CFLAGS': 1104, 'CS_XBS5_ILP32_OFFBIG_LDFLAGS': 1105, 'CS_XBS5_ILP32_OFFBIG_LIBS': 1106, 'CS_XBS5_ILP32_OFFBIG_LINTFLAGS': 1107, 'CS_XBS5_LP64_OFF64_CFLAGS': 1108, 'CS_XBS5_LP64_OFF64_LDFLAGS': 1109, 'CS_XBS5_LP64_OFF64_LIBS': 1110, 'CS_XBS5_LP64_OFF64_LINTFLAGS': 1111, 'CS_XBS5_LPBIG_OFFBIG_CFLAGS': 1112, 'CS_XBS5_LPBIG_OFFBIG_LDFLAGS': 1113, 'CS_XBS5_LPBIG_OFFBIG_LIBS': 1114, 'CS_XBS5_LPBIG_OFFBIG_LINTFLAGS': 1115}
curdir .
defpath /bin:/usr/bin
devnull /dev/null
EFD_CLOEXEC 524288
EFD_NONBLOCK 2048
EFD_SEMAPHORE 1
environ Contenu de type <class 'os._Environ'>
environb Contenu de type <class 'os._Environ'>
EX_CANTCREAT 73
EX_CONFIG 78
EX_DATAERR 65
EX_IOERR 74
EX_NOHOST 68
EX_NOINPUT 66
EX_NOPERM 77
EX_NOUSER 67
EX_OK 0
EX_OSERR 71
EX_OSFILE 72
EX_PROTOCOL 76
EX_SOFTWARE 70
EX_TEMPFAIL 75
EX_UNAVAILABLE 69
EX_USAGE 64
extsep .
F_LOCK 1
F_OK 0
F_TEST 3
F_TLOCK 2
F_ULOCK 0
GRND_NONBLOCK 1
GRND_RANDOM 2
linesep
MFD_ALLOW_SEALING 2
MFD_CLOEXEC 1
MFD_HUGE_16GB 2281701376
MFD_HUGE_16MB 1610612736
MFD_HUGE_1GB 2013265920
MFD_HUGE_1MB 1342177280
MFD_HUGE_256MB 1879048192
MFD_HUGE_2GB 2080374784
MFD_HUGE_2MB 1409286144
MFD_HUGE_32MB 1677721600
MFD_HUGE_512KB 1275068416
MFD_HUGE_512MB 1946157056
MFD_HUGE_64KB 1073741824
MFD_HUGE_8MB 1543503872
MFD_HUGE_MASK 63
MFD_HUGE_SHIFT 26
MFD_HUGETLB 4
name posix
NGROUPS_MAX 65536
O_ACCMODE 3
O_APPEND 1024
O_ASYNC 8192
O_CLOEXEC 524288
O_CREAT 64
O_DIRECT 16384
O_DIRECTORY 65536
O_DSYNC 4096
O_EXCL 128
O_FSYNC 1052672
O_LARGEFILE 0
O_NDELAY 2048
O_NOATIME 262144
O_NOCTTY 256
O_NOFOLLOW 131072
O_NONBLOCK 2048
O_PATH 2097152
O_RDONLY 0
O_RDWR 2
O_RSYNC 1052672
O_SYNC 1052672
O_TMPFILE 4259840
O_TRUNC 512
O_WRONLY 1
P_ALL 0
P_NOWAIT 1
P_NOWAITO 1
P_PGID 2
P_PID 1
P_PIDFD 3
P_WAIT 0
pardir ..
pathconf_names {'PC_ALLOC_SIZE_MIN': 18, 'PC_ASYNC_IO': 10, 'PC_CHOWN_RESTRICTED': 6, 'PC_FILESIZEBITS': 13, 'PC_LINK_MAX': 0, 'PC_MAX_CANON': 1, 'PC_MAX_INPUT': 2, 'PC_NAME_MAX': 3, 'PC_NO_TRUNC': 7, 'PC_PATH_MAX': 4, 'PC_PIPE_BUF': 5, 'PC_PRIO_IO': 11, 'PC_REC_INCR_XFER_SIZE': 14, 'PC_REC_MAX_XFER_SIZE': 15, 'PC_REC_MIN_XFER_SIZE': 16, 'PC_REC_XFER_ALIGN': 17, 'PC_SOCK_MAXBUF': 12, 'PC_SYMLINK_MAX': 19, 'PC_SYNC_IO': 9, 'PC_VDISABLE': 8}
pathsep :
POSIX_FADV_DONTNEED 4
POSIX_FADV_NOREUSE 5
POSIX_FADV_NORMAL 0
POSIX_FADV_RANDOM 1
POSIX_FADV_SEQUENTIAL 2
POSIX_FADV_WILLNEED 3
POSIX_SPAWN_CLOSE 1
POSIX_SPAWN_DUP2 2
POSIX_SPAWN_OPEN 0
PRIO_PGRP 1
PRIO_PROCESS 0
PRIO_USER 2
R_OK 4
RTLD_DEEPBIND 8
RTLD_GLOBAL 256
RTLD_LAZY 1
RTLD_LOCAL 0
RTLD_NODELETE 4096
RTLD_NOLOAD 4
RTLD_NOW 2
RWF_APPEND 16
RWF_DSYNC 2
RWF_HIPRI 1
RWF_NOWAIT 8
RWF_SYNC 4
SCHED_BATCH 3
SCHED_FIFO 1
SCHED_IDLE 5
SCHED_OTHER 0
SCHED_RESET_ON_FORK 1073741824
SCHED_RR 2
SEEK_CUR 1
SEEK_DATA 3
SEEK_END 2
SEEK_HOLE 4
SEEK_SET 0
sep /
SPLICE_F_MORE 4
SPLICE_F_MOVE 1
SPLICE_F_NONBLOCK 2
ST_APPEND 256
ST_MANDLOCK 64
ST_NOATIME 1024
ST_NODEV 4
ST_NODIRATIME 2048
ST_NOEXEC 8
ST_NOSUID 2
ST_RDONLY 1
ST_RELATIME 4096
ST_SYNCHRONOUS 16
ST_WRITE 128
supports_bytes_environ True
supports_dir_fd {<built-in function access>, <built-in function stat>, <built-in function mkfifo>, <built-in function symlink>, <built-in function chown>, <built-in function utime>, <built-in function mknod>, <built-in function readlink>, <built-in function open>, <built-in function unlink>, <built-in function mkdir>, <built-in function rmdir>, <built-in function link>, <built-in function rename>, <built-in function chmod>}
supports_effective_ids {<built-in function access>}
supports_fd {<built-in function execve>, <built-in function stat>, <built-in function listdir>, <built-in function chown>, <built-in function utime>, <built-in function statvfs>, <built-in function scandir>, <built-in function truncate>, <built-in function pathconf>, <built-in function chdir>, <built-in function chmod>}
supports_follow_symlinks {<built-in function access>, <built-in function stat>, <built-in function utime>, <built-in function chown>, <built-in function link>}
sysconf_names Contenu de type <class 'dict'>
TMP_MAX 238328
W_OK 2
WCONTINUED 8
WEXITED 4
WNOHANG 1
WNOWAIT 16777216
WSTOPPED 2
WUNTRACED 2
X_OK 1
XATTR_CREATE 1
XATTR_REPLACE 2
XATTR_SIZE_MAX 65536

Liste des alias du module os

Nom de l'alias Définition ciblée
error OSError