summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123)Phil Connell2019-11-151-1/+9
| | | | | | | | | | | | | | | Small docs update for [bpo-34651](https://bugs.python.org/issue34651). Other references to fork (e.g. the PyOS.*Fork functions or discussions of fork() when embedding Python) point back to os.fork, so I don't think any other updates are needed. https://bugs.python.org/issue38778 Automerge-Triggered-By: @ericsnowcurrently
* bpo-38738: Fix formatting of True and False. (GH-17083)Serhiy Storchaka2019-11-121-2/+2
| | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
* closes bpo-38713: Expose P_PIDFD in os if it's defined. (GH-17071)Benjamin Peterson2019-11-061-1/+11
| | | https://bugs.python.org/issue38713
* bpo-38692: Add os.pidfd_open. (GH-17063)Benjamin Peterson2019-11-061-0/+13
|
* bpo-38493: Add os.CLD_KILLED and os.CLD_STOPPED. (GH-16821)Dong-hee Na2019-10-211-0/+5
|
* bpo-38378: Rename parameters "out" and "in" of os.sendfile(). (GH-16742)Serhiy Storchaka2019-10-131-9/+12
| | | | | | | They conflicted with keyword "in". Also rename positional-only parameters of private os._fcopyfile() for consistency.
* bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)Joannah Nanjekye2019-09-071-1/+3
|
* bpo-37834: Normalise handling of reparse points on Windows (GH-15231)Steve Dower2019-08-211-2/+51
| | | | | | | | | | bpo-37834: Normalise handling of reparse points on Windows * ntpath.realpath() and nt.stat() will traverse all supported reparse points (previously was mixed) * nt.lstat() will let the OS traverse reparse points that are not name surrogates (previously would not traverse any reparse point) * nt.[l]stat() will only set S_IFLNK for symlinks (previous behaviour) * nt.readlink() will read destinations for symlinks and junction points only bpo-1311: os.path.exists('nul') now returns True on Windows * nt.stat('nul').st_mode is now S_IFCHR (previously was an error)
* closes bpo-37554: Remove `q:q` in os.rst documentation (GH-14692)Mariatta2019-07-111-1/+1
| | | https://bugs.python.org/issue37554
* bpo-37478: Add missing 'and'. (GH-14631)Terry Jan Reedy2019-07-071-1/+1
|
* bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)Kyle Stanley2019-07-071-0/+3
|
* Use OSError subclasses in os documentation (GH-14262)Tim Hoffmann2019-07-051-17/+24
|
* bpo-37390: Add audit event table to documentations (GH-14406)Steve Dower2019-06-271-6/+6
| | | Also updates some (unreleased) event names to be consistent with the others.
* bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)Victor Stinner2019-06-261-0/+5
| | | | | | | | | The os.getcwdb() function now uses the UTF-8 encoding on Windows, rather than the ANSI code page: see PEP 529 for the rationale. The function is no longer deprecated on Windows. os.getcwd() and os.getcwdb() now detect integer overflow on memory allocations. On Unix, these functions properly report MemoryError on memory allocation failure.
* bpo-37363: Add audit events for a range of modules (GH-14301)Steve Dower2019-06-241-0/+4
|
* bpo-26836: Document os.memfd_create() name parameter (GH-13838)Victor Stinner2019-06-051-0/+7
| | | https://bugs.python.org/issue26836
* bpo-26826: Expose copy_file_range in the os module (GH-7255)Pablo Galindo2019-05-311-0/+22
|
* bpo-26836: Add os.memfd_create() (#13567)Zackery Spytz2019-05-291-0/+38
| | | | | | | | | | | | | | | | | | | | * bpo-26836: Add os.memfd_create() * Use the glibc wrapper for memfd_create() Co-Authored-By: Christian Heimes <christian@python.org> * Fix deletions caused by autoreconf. * Use MFD_CLOEXEC as the default value for *flags*. * Add memset_s to configure.ac. * Revert memset_s changes. * Apply the requested changes. * Tweak the docs.
* bpo-36842: Implement PEP 578 (GH-12613)Steve Dower2019-05-231-1/+11
| | | Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
* bpo-31904: Add posix module support for VxWorks (GH-12118)pxinwr2019-05-211-0/+4
|
* bpo-16024: Doc cleanup regarding path_fd, dir_fd, follow_symlinks (GH-5505)Cheryl Sabella2019-05-061-66/+76
|
* bpo-31512: Add non-elevated symlink support for Windows (GH-3652)Vidar Tonaas Fauske2019-04-091-8/+7
|
* bpo-36085: Enable better DLL resolution on Windows (GH-12302)Steve Dower2019-03-291-0/+30
|
* bpo-36170: posix_spawn doesn't exist on 3.7 (GH-12143)Mark Williams2019-03-031-1/+1
| | | The 3.8 docs claim that `os.posix_spawn` was introduced in 3.7, but it wasn't; it will be introduced in 3.8.
* bpo-35537: Add setsid parameter to os.posix_spawn() and os.posix_spawnp() ↵Joannah Nanjekye2019-02-011-2/+10
| | | | (GH-11608)
* bpo-35674: Add os.posix_spawnp() (GH-11554)Joannah Nanjekye2019-01-161-0/+17
| | | Add a new os.posix_spawnp() function.
* Fix doc typo: Window -> Windows (GH-10508)l-n-s2018-11-141-1/+1
|
* bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)Serhiy Storchaka2018-10-311-5/+5
|
* bpo-35054: Add yet more index entries for symbols. (GH-10121)Serhiy Storchaka2018-10-281-6/+7
|
* bpo-35054: Add more index entries for symbols. (GH-10064)Serhiy Storchaka2018-10-261-0/+7
|
* bpo-11233: Create availability directive for documentation (GH-9692)Cheryl Sabella2018-10-121-157/+148
| | | | | | Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <georg@python.org>
* bpo-20104: Change the file_actions parameter of os.posix_spawn(). (GH-6725)Serhiy Storchaka2018-09-081-2/+3
| | | | | * Make its default value an empty tuple instead of None. * Make it a keyword-only parameter.
* bpo-20104: Add flag capabilities to posix_spawn (GH-6693)Pablo Galindo2018-09-071-1/+33
| | | Implement the "attributes objects" parameter of `os.posix_spawn` to complete the implementation and fully cover the underlying API.
* bpo-34384: Fix os.readlink() on Windows (GH-8740)Berker Peksag2018-08-151-1/+3
| | | | | | | | | os.readlink() now accepts path-like and bytes objects on Windows. Previously, support for path-like and bytes objects was only implemented on Unix. This commit also merges Unix and Windows implementations of os.readlink() in one function and adds basic unit tests to increase test coverage of the function.
* bpo-31368: Enhance os.preadv() documentation (GH-7254)Pablo Galindo2018-05-301-95/+114
|
* bpo-32878: Adds documentation for st_ino on Windows (GH-5764)Steve Dower2018-05-291-1/+11
|
* bpo-20104: Improve error handling and fix a reference leak in ↵Serhiy Storchaka2018-05-011-11/+27
| | | | os.posix_spawn(). (#6332)
* bpo-20709: os.utime(path_to_directory): wrong documentation for Windows. ↵Stéphane Wirtel2018-05-011-8/+6
| | | | | | | | (GH-5469) Remove the paragraph where we explain that os.utime() does not support a directory as path under Windows. Patch by Jan-Philip Gehrcke Co-authored-by: Jan-Philip Gehrcke <jgehrcke@gmail.com>
* Fix rendering issues in the documentation for the os module (#6525)Pablo Galindo2018-04-251-4/+16
|
* closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir ↵Andrés Delfino2018-04-031-1/+1
| | | | | | (GH-6335)
* bpo-20104: Add os.posix_spawn documentation. (#6334)Gregory P. Smith2018-04-011-0/+25
|
* bpo-32659: Solaris "stat" should support "st_fstype" (#5307)jcea2018-01-281-0/+10
| | | | | | * bpo-32659: Solaris "stat" should support "st_fstype" * Add 'versionadded'
* bpo-31368: Expose preadv and pwritev in the os module (#5239)Pablo Galindo2018-01-271-0/+84
|
* bpo-32651 Recommend getpass.getuser() (#5301)Barry Warsaw2018-01-241-4/+5
| | | | * bpo-32651 - In the documentation for os.getlogin(), recommend getpass.getuser()
* return the new file descriptor from os.dup2 (closes bpo-32441) (#5041)Benjamin Peterson2017-12-291-3/+7
|
* bpo-32143: add f_fsid to os.statvfs() (#4571)Giuseppe Scrivano2017-12-141-1/+4
| | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* bpo-31827: Remove os.stat_float_times() (GH-4061)Victor Stinner2017-10-241-29/+0
|
* bpo-16500: Don't use string constants for os.register_at_fork() behavior (#1834)Gregory P. Smith2017-05-291-8/+16
| | | | Instead use keyword only arguments to os.register_at_fork for each of the scenarios. Updates the documentation for clarity.
* bpo-16500: Allow registering at-fork handlers (#1715)Antoine Pitrou2017-05-271-0/+25
| | | | | | | | | | | | * bpo-16500: Allow registering at-fork handlers * Address Serhiy's comments * Add doc for new C API * Add doc for new Python-facing function * Add NEWS entry + doc nit
* bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502)Serhiy Storchaka2017-03-301-1/+9
| | | | os.fwalk() is sped up by 2 times by using os.scandir().