summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
Commit message (Collapse)AuthorAgeFilesLines
* Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25795)Miss Islington (bot)2021-05-011-2/+2
| | | | | | | (cherry picked from commit 779232413a367cd3357482e675a5518de102a90e) Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com> Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
* documentation: clarification about the function remove in os library ↵Miss Islington (bot)2021-04-261-0/+1
| | | | | | | (GH-19024) (GH-25618) (cherry picked from commit b6daab2f676de1773d8f35fb362fe4c57449301d) Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
* Remove mention of dst parameter from description of os.lstat() (GH-24704)Miss Islington (bot)2021-04-251-1/+1
| | | | | | | It looks like it was accidentally copy-pasted in 6fa7aada9bd3616e0beeb266e818497b2ec1c859. (cherry picked from commit 7f8e072c6dc88d6973d81f8fd572c04c88e7e3d7) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* [3.8] [doc] Fix erroneous backslashes in signatures and names (GH-23658) ↵Andre Delfino2020-12-221-5/+5
| | | | | | | | | | (GH-23828) The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch). The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did.. (cherry picked from commit dcc997cd28ab33ebac44182ee55533c1b37689f7) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* Doc: Add missing spaces after period for `posix_spawn` (GH-22730)Miss Skeleton (bot)2020-10-201-2/+2
| | | | | (cherry picked from commit 5b57fa69408c4856bf0ae02f2eaa3db1ef980ea6) Co-authored-by: Tomer Cohen <tomer@users.noreply.github.com>
* [3.8] bpo-40486: Specify what happens if directory content change diring ↵Miss Islington (bot)2020-09-041-2/+9
| | | | | | | | iteration (GH-22025) (GH-22094) (cherry picked from commit 306cfb3a37e1438f6ba9f0a9f3af3c00aae4ec64) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-40094: Enhance os.WIFEXITED documentation (GH-19244) (GH-19277)Miss Islington (bot)2020-04-011-10/+24
| | | | | (cherry picked from commit 7c72383f95b0cdedf390726069428d7b69ed2597) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, ↵Steve Dower2020-02-131-0/+68
| | | | | | `resource`, `shutil`, `signal`, `syslog` (GH-18407) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* bpo-39594: Fix typo in os.times documentation (GH-18443)Miss Islington (bot)2020-02-101-4/+2
| | | | | | | | There was an extra space in the url markup, causing the documentation not rendered properly. https://bugs.python.org/issue39594 (cherry picked from commit 37c55b2b49a3acb7c56c9f6a5062bc6e4e35bc1c) Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
* bpo-39184: Add audit events to command execution functions in os and pty ↵Miss Islington (bot)2020-02-051-0/+10
| | | | | | | modules (GH-17824) (cherry picked from commit 95f60010219e142a436fae18e1695cbc45407afe) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* bpo-39413: os.unsetenv() is not available on Windows (GH-18108)Victor Stinner2020-01-221-1/+1
| | | Update os.unsetenv() documentation: it is not available on Windows.
* bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123)Miss Islington (bot)2019-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 (cherry picked from commit b22030073b9327a3aeccb69507694bce078192aa) Co-authored-by: Phil Connell <pconnell@gmail.com>
* [3.8] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17125)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>". (cherry picked from commit 138ccbb02216ca086047c3139857fb44f3dab1f9)
* bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)Miss Islington (bot)2019-09-071-1/+3
| | | | | (cherry picked from commit 3ccdbc33385a849c60a268def578cb06b8d41be6) Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
* bpo-37834: Normalise handling of reparse points on Windows (GH-15370)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)Miss Islington (bot)2019-07-111-1/+1
| | | | | | https://bugs.python.org/issue37554 (cherry picked from commit 7cbef72902f32866a416ca6c4e732af4541951b8) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
* bpo-37478: Add missing 'and'. (GH-14631)Miss Islington (bot)2019-07-071-1/+1
| | | | | (cherry picked from commit a9b40e4546ca631e5ab41376b5b72e8f296f557d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14629)Miss Islington (bot)2019-07-071-0/+3
| | | | | (cherry picked from commit 0717b4d9b3899c5c2ca13031e4ff619a15a4d368) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* Use OSError subclasses in os documentation (GH-14262)Miss Islington (bot)2019-07-051-17/+24
| | | | | (cherry picked from commit a55f75a6e3e9cda5c7c30bd961386b1a8a2e9892) Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
* bpo-37390: Add audit event table to documentations (GH-14406)Miss Islington (bot)2019-06-271-6/+6
| | | | | | Also updates some (unreleased) event names to be consistent with the others. (cherry picked from commit 44f91c388a6f4da9ed3300df32ca290b8aa104ea) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)Miss Islington (bot)2019-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. (cherry picked from commit 689830ee6243126798a6c519c05aa11ba73db7cd) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37363: Add audit events for a range of modules (GH-14301)Miss Islington (bot)2019-06-241-0/+4
| | | | | (cherry picked from commit 60419a7e96577cf783b3b45bf3984f9fb0d7ddff) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-26836: Document os.memfd_create() name parameter (GH-13838) (GH-13839)Miss Islington (bot)2019-06-051-0/+7
| | | | | | https://bugs.python.org/issue26836 (cherry picked from commit ccf0efbb21f6bbf6efd5f8cb560fed11079ce1a2) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* 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
|