Repository navigation
v0.0.171
Extended the os module with a lot of what CPython programs expect to find there.
New functions: os.replace, os.link, os.truncate, os.umask, os.getuid, os.getgid, os.geteuid, os.getegid, os.getppid, os.cpu_count, os.strerror, os.urandom, os.fsencode, os.fsdecode, os.get_exec_path, os.walk, os.scandir.
Low-level fd operations: os.open, os.read, os.write, os.lseek, os.fstat, os.dup, os.close. os.dup shares file position with the original descriptor, matching POSIX semantics.
os.makedirs now accepts the exist_ok keyword argument. os.stat_result supports integer indexing so code like st[6] works.
Added constants: F_OK, R_OK, W_OK, X_OK, O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_TRUNC, SEEK_SET, SEEK_CUR, SEEK_END.
os.scandir returns DirEntry objects with is_dir() and is_file() methods.
What's Changed
Full Changelog: v0.0.170...v0.0.171