Steve Dower
019e9e8168
bpo-43538: Add extra arguments to os.startfile (GH-25538)
2021-04-23 18:03:17 +01:00
Dong-hee Na
f917c243c5
bpo-43106: Add os.O_EVTONLY/O_FSYNC/O_SYMLINK/O_NOFOLLOW_ANY (GH-24428)
2021-02-04 08:32:55 +09:00
Andre Delfino
96a09df644
[doc] Fix a few margins due to bad markup (GH-23619)
2020-12-17 09:25:55 -08:00
Andre Delfino
dcc997cd28
[doc] Fix erroneous backslashes in signatures and names (GH-23658)
...
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.
2020-12-16 17:37:28 -08:00
pxinwr
e1e3c2dac3
bpo-31904: Disable os.popen and popen test cases on VxWorks (GH-21687)
2020-12-15 22:20:07 +01:00
Pablo Galindo
e59958f8b6
bpo-41625: Specify that Linux >= 2.6.17 *and* glibc >= 2.5 are requir… (GH-23351)
...
…ed for splice()
2020-11-17 11:57:03 -08:00
Pablo Galindo
fa96608513
bpo-41625: Add versionadded to os.splice() constants (GH-23340)
2020-11-17 18:13:50 +00:00
Pablo Galindo
a57b3d30f6
bpo-41625: Expose the splice() system call in the os module (GH-21947)
2020-11-17 00:00:38 +00:00
Christian Heimes
cd9fed6afb
bpo-41001: Add os.eventfd() ( #20930 )
...
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2020-11-13 19:48:52 +01:00
Victor Stinner
3529718925
bpo-42236: os.device_encoding() respects UTF-8 Mode (GH-23119)
...
On Unix, the os.device_encoding() function now returns 'UTF-8' rather
than the device encoding if the Python UTF-8 Mode is enabled.
2020-11-04 11:20:10 +01:00
Victor Stinner
4b9aad4999
bpo-42236: Enhance init and encoding documentation (GH-23109)
...
Enhance the documentation of the Python startup, filesystem encoding
and error handling, locale encoding. Add a new "Python UTF-8 Mode"
section.
* Add "locale encoding" and "filesystem encoding and error handler"
to the glossary
* Remove documentation from Include/cpython/initconfig.h: move it to
Doc/c-api/init_config.rst.
* Doc/c-api/init_config.rst:
* Document command line options and environment variables
* Document default values.
* Add a new "Python UTF-8 Mode" section in Doc/library/os.rst.
* Add warnings to Py_DecodeLocale() and Py_EncodeLocale() docs.
* Document how Python selects the filesystem encoding and error
handler at a single place: PyConfig.filesystem_encoding and
PyConfig.filesystem_errors.
* PyConfig: move orig_argv member at the right place.
2020-11-02 16:49:54 +01:00
Tomer Cohen
5b57fa6940
Doc: Add missing spaces after period for `posix_spawn` (GH-22730)
2020-10-20 18:08:58 +09:00
Serhiy Storchaka
306cfb3a37
bpo-40486: Specify what happens if directory content change diring iteration (GH-22025)
2020-09-04 21:19:30 +03:00
YoSTEALTH
76ef255bde
bpo-37129: Add os.RWF_APPEND flag for os.pwritev() (GH-20336)
2020-05-27 23:32:22 +02:00
Batuhan Taskaya
cae2275949
bpo-40211: Clarify os.preadv and os.pwritev are supported on AIX 7.1+ (GH-19401)
2020-05-16 23:36:40 +01:00
Serhiy Storchaka
2b5603140c
bpo-40178: Convert the remaining os functions to Argument Clinic. (GH-19360)
...
Convert os.getgrouplist(), os.initgroups(), os.sendfile() and
os.get_terminal_size().
2020-04-18 19:14:10 +03:00
Victor Stinner
65a796e527
bpo-40094: Add os.waitstatus_to_exitcode() (GH-19201)
...
Add os.waitstatus_to_exitcode() function to convert a wait status to an
exitcode.
Suggest waitstatus_to_exitcode() usage in the documentation when
appropriate.
Use waitstatus_to_exitcode() in:
* multiprocessing, os, subprocess and _bootsubprocess modules;
* test.support.wait_process();
* setup.py: run_command();
* and many tests.
2020-04-01 18:49:29 +02:00
Victor Stinner
7c72383f95
bpo-40094: Enhance os.WIFEXITED documentation (GH-19244)
2020-04-01 15:48:05 +02:00
Charles Burkland
d648ef10c5
bpo-36144: Update os.environ and os.environb for PEP 584 ( #18911 )
2020-03-13 09:04:43 -07:00
Serhiy Storchaka
db283b32e7
bpo-39567: Document audit for os.walk, os.fwalk, Path.glob and Path.rglob. (GH-18499)
2020-03-08 14:31:47 +02:00
Saiyang Gou
7514f4f625
bpo-39184: Add audit events to functions in `fcntl`, `msvcrt`, `os`, `resource`, `shutil`, `signal`, `syslog` (GH-18407)
2020-02-13 07:47:42 +00:00
Roger Hurwitz
37c55b2b49
bpo-39594: Fix typo in os.times documentation (GH-18443)
...
There was an extra space in the url markup, causing the documentation not rendered properly.
https://bugs.python.org/issue39594
2020-02-10 14:50:19 -08:00
Saiyang Gou
95f6001021
bpo-39184: Add audit events to command execution functions in os and pty modules (GH-17824)
2020-02-05 11:15:00 +11:00
Victor Stinner
b8d1262e8a
bpo-39395: putenv() and unsetenv() always available (GH-18135)
...
The os.putenv() and os.unsetenv() functions are now always available.
On non-Windows platforms, Python now requires setenv() and unsetenv()
functions to build.
Remove putenv_dict from posixmodule.c: it's not longer needed.
2020-01-24 14:05:48 +01:00
Victor Stinner
161e7b36b1
bpo-39413: Implement os.unsetenv() on Windows (GH-18163)
...
The os.unsetenv() function is now also available on Windows.
2020-01-24 11:53:44 +01:00
Victor Stinner
b73dd02ea7
Revert "bpo-39413: Implement os.unsetenv() on Windows (GH-18104)" (GH-18124)
...
This reverts commit 56cd3710a1
.
2020-01-22 21:11:17 +01:00
Victor Stinner
56cd3710a1
bpo-39413: Implement os.unsetenv() on Windows (GH-18104)
...
The os.unsetenv() function is now also available on Windows.
It is implemented with SetEnvironmentVariableW(name, NULL).
2020-01-21 16:13:09 +01:00
Phil Connell
b22030073b
bpo-38778: Document that os.fork is not allowed in subinterpreters (GH-17123)
...
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
2019-11-15 08:56:03 -08:00
Serhiy Storchaka
138ccbb022
bpo-38738: Fix formatting of True and False. (GH-17083)
...
* "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>".
2019-11-12 16:57:03 +02:00
Benjamin Peterson
5c0c325453
closes bpo-38713: Expose P_PIDFD in os if it's defined. (GH-17071)
...
https://bugs.python.org/issue38713
2019-11-05 21:58:31 -08:00
Benjamin Peterson
6c4c45efae
bpo-38692: Add os.pidfd_open. (GH-17063)
2019-11-05 19:21:29 -08:00
Dong-hee Na
2eba6ad7bf
bpo-38493: Add os.CLD_KILLED and os.CLD_STOPPED. (GH-16821)
2019-10-21 10:01:05 +03:00
Serhiy Storchaka
140a7d1f35
bpo-38378: Rename parameters "out" and "in" of os.sendfile(). (GH-16742)
...
They conflicted with keyword "in".
Also rename positional-only parameters of private os._fcopyfile()
for consistency.
2019-10-13 11:59:31 +03:00
Joannah Nanjekye
3ccdbc3338
bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)
2019-09-07 10:05:29 +03:00
Steve Dower
df2d4a6f3d
bpo-37834: Normalise handling of reparse points on Windows (GH-15231)
...
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)
2019-08-21 15:27:33 -07:00
Mariatta
7cbef72902
closes bpo-37554: Remove `q:q` in os.rst documentation (GH-14692)
...
https://bugs.python.org/issue37554
2019-07-11 10:31:19 -07:00
Terry Jan Reedy
a9b40e4546
bpo-37478: Add missing 'and'. (GH-14631)
2019-07-06 22:44:01 -04:00
Kyle Stanley
0717b4d9b3
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)
2019-07-06 21:20:15 -04:00
Tim Hoffmann
a55f75a6e3
Use OSError subclasses in os documentation (GH-14262)
2019-07-05 11:41:35 +03:00
Steve Dower
44f91c388a
bpo-37390: Add audit event table to documentations (GH-14406)
...
Also updates some (unreleased) event names to be consistent with the others.
2019-06-27 10:47:59 -07:00
Victor Stinner
689830ee62
bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)
...
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.
2019-06-26 17:31:12 +02:00
Steve Dower
60419a7e96
bpo-37363: Add audit events for a range of modules (GH-14301)
2019-06-24 08:42:54 -07:00
Victor Stinner
ccf0efbb21
bpo-26836: Document os.memfd_create() name parameter (GH-13838)
...
https://bugs.python.org/issue26836
2019-06-05 03:24:52 -07:00
Pablo Galindo
aac4d0342c
bpo-26826: Expose copy_file_range in the os module (GH-7255)
2019-05-31 19:39:47 +01:00
Zackery Spytz
43fdbd2729
bpo-26836: Add os.memfd_create() ( #13567 )
...
* 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.
2019-05-29 21:57:03 +02:00
Steve Dower
b82e17e626
bpo-36842: Implement PEP 578 (GH-12613)
...
Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
2019-05-23 08:45:22 -07:00
pxinwr
f2d7ac7e5b
bpo-31904: Add posix module support for VxWorks (GH-12118)
2019-05-21 12:46:37 +02:00
Cheryl Sabella
e152169da9
bpo-16024: Doc cleanup regarding path_fd, dir_fd, follow_symlinks (GH-5505)
2019-05-06 08:39:13 -04:00
Vidar Tonaas Fauske
0e10766574
bpo-31512: Add non-elevated symlink support for Windows (GH-3652)
2019-04-09 11:19:46 -07:00
Steve Dower
2438cdf0e9
bpo-36085: Enable better DLL resolution on Windows (GH-12302)
2019-03-29 16:37:16 -07:00
Mark Williams
8b50400fbe
bpo-36170: posix_spawn doesn't exist on 3.7 (GH-12143)
...
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.
2019-03-03 12:42:25 -05:00
Joannah Nanjekye
80c5dfe74b
bpo-35537: Add setsid parameter to os.posix_spawn() and os.posix_spawnp() (GH-11608)
2019-02-01 11:05:22 +01:00
Joannah Nanjekye
92b8322e7e
bpo-35674: Add os.posix_spawnp() (GH-11554)
...
Add a new os.posix_spawnp() function.
2019-01-16 14:29:26 +01:00
l-n-s
daeb3c4c58
Fix doc typo: Window -> Windows (GH-10508)
2018-11-13 16:13:12 -08:00
Serhiy Storchaka
3f819ca138
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)
2018-10-31 02:26:06 +02:00
Serhiy Storchaka
913876d824
bpo-35054: Add yet more index entries for symbols. (GH-10121)
2018-10-28 13:41:26 +02:00
Serhiy Storchaka
ddb961d2ab
bpo-35054: Add more index entries for symbols. (GH-10064)
2018-10-26 09:00:49 +03:00
Cheryl Sabella
2d6097d027
bpo-11233: Create availability directive for documentation (GH-9692)
...
Replace "Availability: xxx" with ".. availability:: xxx" in the doc.
Original patch by Georg Brandl.
Co-Authored-By: Georg Brandl <georg@python.org>
2018-10-12 16:55:20 +02:00
Serhiy Storchaka
d700f97b62
bpo-20104: Change the file_actions parameter of os.posix_spawn(). (GH-6725)
...
* Make its default value an empty tuple instead of None.
* Make it a keyword-only parameter.
2018-09-08 14:48:18 +03:00
Pablo Galindo
254a4663d8
bpo-20104: Add flag capabilities to posix_spawn (GH-6693)
...
Implement the "attributes objects" parameter of `os.posix_spawn` to complete the implementation and fully cover the underlying API.
2018-09-07 16:44:24 +01:00
Berker Peksag
e0b5b2096e
bpo-34384: Fix os.readlink() on Windows (GH-8740)
...
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.
2018-08-15 13:03:41 +03:00
Pablo Galindo
02e2a085dc
bpo-31368: Enhance os.preadv() documentation (GH-7254)
2018-05-31 01:00:04 +02:00
Steve Dower
3e51a3d592
bpo-32878: Adds documentation for st_ino on Windows (GH-5764)
2018-05-28 17:24:36 -07:00
Serhiy Storchaka
ef347535f2
bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). ( #6332 )
2018-05-01 16:45:04 +03:00
Stéphane Wirtel
7508a54c77
bpo-20709: os.utime(path_to_directory): wrong documentation for Windows. (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>
2018-05-01 12:02:26 +02:00
Pablo Galindo
d6ef6db9ff
Fix rendering issues in the documentation for the os module ( #6525 )
2018-04-25 20:48:27 +03:00
Andrés Delfino
badb894bbb
closes bpo-33202: fix os.walk mentioning os.listdir instead of os.scandir (GH-6335)
2018-04-02 19:48:54 -07:00
Gregory P. Smith
79760ed256
bpo-20104: Add os.posix_spawn documentation. ( #6334 )
2018-04-01 12:01:48 -07:00
jcea
6c51d51880
bpo-32659: Solaris "stat" should support "st_fstype" ( #5307 )
...
* bpo-32659: Solaris "stat" should support "st_fstype"
* Add 'versionadded'
2018-01-28 14:00:08 +01:00
Pablo Galindo
4defba3b95
bpo-31368: Expose preadv and pwritev in the os module ( #5239 )
2018-01-27 17:16:37 +01:00
Barry Warsaw
d499031f5f
bpo-32651 Recommend getpass.getuser() ( #5301 )
...
* bpo-32651 - In the documentation for os.getlogin(), recommend getpass.getuser()
2018-01-24 12:51:29 -05:00
Benjamin Peterson
bbdb17d19b
return the new file descriptor from os.dup2 (closes bpo-32441) ( #5041 )
2017-12-29 13:13:06 -08:00
Giuseppe Scrivano
96a5e50a5d
bpo-32143: add f_fsid to os.statvfs() ( #4571 )
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-12-14 17:46:46 -05:00
Victor Stinner
01b5aab7bf
bpo-31827: Remove os.stat_float_times() (GH-4061)
2017-10-24 02:02:00 -07:00
Gregory P. Smith
163468a766
bpo-16500: Don't use string constants for os.register_at_fork() behavior ( #1834 )
...
Instead use keyword only arguments to os.register_at_fork for each of the scenarios.
Updates the documentation for clarity.
2017-05-29 10:03:41 -07:00
Antoine Pitrou
346cbd351e
bpo-16500: Allow registering at-fork handlers ( #1715 )
...
* 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
2017-05-27 17:50:54 +02:00
Serhiy Storchaka
ea720fe7e9
bpo-25996: Added support of file descriptors in os.scandir() on Unix. ( #502 )
...
os.fwalk() is sped up by 2 times by using os.scandir().
2017-03-30 09:12:31 +03:00
Serhiy Storchaka
e304e33c16
bpo-19930: The mode argument of os.makedirs() no longer affects the file ( #799 )
...
permission bits of newly-created intermediate-level directories.
2017-03-24 13:27:42 +02:00
Serhiy Storchaka
8f6b344d36
bpo-28682: Added support for bytes paths in os.fwalk(). ( #489 )
2017-03-07 14:33:21 +02:00
Berker Peksag
d4d48743ac
Tweak PEP 519 documentation in stdlib ( #163 )
...
* Drop duplicate work 'object' in lzma docs
* Fix typo in os docs: fpr -> for
2017-02-19 03:17:35 +03:00
Xiang Zhang
4459e009ed
Issue #29092 : Sync os.stat's doc and docstring on path type.
2017-01-22 13:04:17 +08:00
Xiang Zhang
d7d87ca9b0
Issue #29092 : Sync os.stat's doc and docstring on path type.
2017-01-22 12:54:44 +08:00
Serhiy Storchaka
3c38e066b1
Issue #27998 : Documented bytes paths support on Windows.
2016-11-20 08:23:07 +02:00
Serhiy Storchaka
989db5c880
Issue #19795 : Mark up None as literal text.
2016-10-19 16:37:13 +03:00
Serhiy Storchaka
ecf41da83e
Issue #19795 : Mark up None as literal text.
2016-10-19 16:29:26 +03:00
Berker Peksag
8d08265f5e
Merge from 3.5
2016-09-26 22:50:32 +03:00
Berker Peksag
6129e14b21
Document that os.mknod() is not available on Windows
...
Reported by Regina Ochotzki on docs@p.o.
2016-09-26 22:50:11 +03:00
Berker Peksag
20d458fad6
Merge from 3.5
2016-09-26 22:44:32 +03:00
Berker Peksag
996e5f94d2
os.genenvb() is not availabnle under Windows
2016-09-26 22:44:07 +03:00
Vinay Sajip
d5ee406ff1
Closes #23105 : Merged update from 3.5.
2016-09-11 15:16:58 +01:00
Vinay Sajip
e4946e73c8
Issue #23105 : Updated documentation on open() flag constants.
2016-09-11 15:15:59 +01:00
Victor Stinner
e66987e626
os.urandom() now blocks on Linux
...
Issue #27776 : The os.urandom() function does now block on Linux 3.17 and newer
until the system urandom entropy pool is initialized to increase the security.
This change is part of the PEP 524.
2016-09-06 16:33:52 -07:00
Victor Stinner
9b1f474df6
Add os.getrandom()
...
Issue #27778 : Expose the Linux getrandom() syscall as a new os.getrandom()
function.
This change is part of the PEP 524.
2016-09-06 16:18:52 -07:00
Brett Cannon
6fa7aada9b
Issue #26027 , #27524 : Document the support for path-like objects in os and os.path.
...
This completes PEP 519.
2016-09-06 15:55:02 -07:00
Larry Hastings
10108a7b9a
Issue #27355 : Removed support for Windows CE. It was never finished,
...
and Windows CE is no longer a relevant platform for Python.
2016-09-05 15:11:23 -07:00
Martin Panter
8bde911115
Issue #27626 : Merge spelling fixes from 3.5
2016-07-28 01:30:58 +00:00
Martin Panter
eb9957065a
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Brett Cannon
a32c4d0531
Issue #27038 : Expose DirEntry as os.DirEntry.
...
Thanks to Jelle Zijlstra for the code portion of the patch.
2016-06-24 14:14:44 -07:00
Brett Cannon
559ad5d401
Remove a stale reference to pathlib.PurePath.path
2016-06-24 12:22:14 -07:00
Brett Cannon
c28592bb2f
Issue #27186 : Define what a "path-like object" is.
...
Thanks to Dusty Phillips for the initial patch.
2016-06-24 12:21:47 -07:00
Brett Cannon
c78ca1e044
Issue #27186 : Update os.fspath()/PyOS_FSPath() to check the return
...
type of __fspath__().
As part of this change, also make sure that the pure Python
implementation of os.fspath() is tested.
2016-06-24 12:03:43 -07:00
Senthil Kumaran
4c3e687745
[merge from 3.5] - issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
...
Patch contributed Марк Коренберг.
2016-06-18 11:23:04 -07:00
Senthil Kumaran
d37de3c41d
issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
...
Patch contributed Марк Коренберг.
2016-06-18 11:21:50 -07:00
Terry Jan Reedy
4da945f361
Merge Issue #22558 .
2016-06-11 15:06:08 -04:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Brett Cannon
96881cd621
Issue #27186 : Add os.PathLike support to DirEntry
...
Initial patch thanks to Jelle Zijlstra.
2016-06-10 14:37:21 -07:00
Martin Panter
b7bdfcff97
Issue #24617 : Merge os.mkdir() doc from 3.5
2016-06-10 08:40:02 +00:00
Berker Peksag
b18ffb4dd8
Add a versionadded directive to os.PathLike
2016-06-10 08:43:54 +03:00
Brett Cannon
b08388d5f2
Issue #27182 : Document os.PathLike.
...
Part of PEP 519.
2016-06-09 15:58:06 -07:00
Brett Cannon
0fa1aa1975
Clarify the os.fspath() documentation.
2016-06-09 14:37:06 -07:00
Victor Stinner
9ff9cbd600
Merge 3.5 (os.urandom)
2016-06-07 11:25:43 +02:00
Victor Stinner
dddf4849ec
os.urandom() doesn't block on Linux anymore
...
Issue #26839 : On Linux, os.urandom() now calls getrandom() with GRND_NONBLOCK
to fall back on reading /dev/urandom if the urandom entropy pool is not
initialized yet. Patch written by Colm Buckley.
2016-06-07 11:21:42 +02:00
Ethan Furman
cdc0879d3a
issue27186 -- initial docs, tests, and python version of os.fspath
2016-06-02 15:06:09 -07:00
Tommy Beadle
63b91e5403
Issue #24617 : Add comment for os.mkdir about mode quirks
2016-06-02 15:41:20 -04:00
Martin Panter
e501a93c18
Issue #27125 : Merge typo fixes from 3.5
...
Also merge changes from Issue #27117 ; no actual code changes to 3.6.
2016-05-29 09:05:06 +00:00
Martin Panter
8d56c026a5
Issue #27125 : Fix various errors like “will [be] inherited”
2016-05-29 04:13:35 +00:00
Zachary Ware
3211595bef
Merge with 3.5
2016-04-25 09:27:49 -05:00
Zachary Ware
d3304e3e20
FileExistsError is raised by mkdir when dir exists
...
Reported by Saul Spatz on docs@
2016-04-25 09:27:27 -05:00
Martin Panter
cda80940ed
Issue #15984 : Merge PyUnicode doc from 3.5
2016-04-15 02:27:11 +00:00
Martin Panter
6245cb3c01
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation, code comments, and a debugging messages.
2016-04-15 02:14:19 +00:00
Georg Brandl
3902d62c4e
merge with 3.5
2016-02-26 19:37:52 +01:00
Georg Brandl
5d94134040
Closes #25910 : fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
2016-02-26 19:37:12 +01:00
Serhiy Storchaka
ffe96ae10b
Issue #25994 : Added the close() method and the support of the context manager
...
protocol for the os.scandir() iterator.
2016-02-11 13:21:30 +02:00
Victor Stinner
59fe937c50
Merge 3.5 (doc)
2016-01-31 18:36:52 +01:00
Victor Stinner
5f0c5d92ef
Enhance os.scandir() doc
...
Issue #26248 , patch written by Ben Hoyt:
1) Clarify that the return values of is_dir()/is_file()/etc are cached
separately for follow_symlinks True and False.
2) Be more specific about when the functions require a system call, and how it
relates to caching and follow_symlinks.
3) DRY up common stuff between is_dir and is_file by saying "Caching, system
calls made, and exceptions raised are as per is_dir" in is_file.
4) Tweak to the first paragraph of docs for is_dir/is_file to simplify: assume
the follow_symlinks=True default, then note the follow_symlinks=False
non-default case after.
2016-01-31 18:36:41 +01:00
Guido van Rossum
f08a308ebb
Docs for issue #22570 . (Merge 3.5->3.6)
2016-01-06 11:37:52 -08:00
Guido van Rossum
1469d744bc
Cross-reference os.DirEntry and pathlib.Path for issue #22570 .
2016-01-06 11:36:03 -08:00
Brett Cannon
01f7ac3bb0
Backport of fix for issue #25930
2015-12-28 17:30:32 -08:00
Brett Cannon
050391774a
Issue #25930 : Document that os.unlink and os.remove are *semantically* identical.
...
Saying that the functions were identical confused some users who were
upset when the functions were no longer simply the same function under
different names.
Thanks to Anthony Sottile for the bug report and Swati Jaiswal for the
initial patch.
2015-12-28 17:28:19 -08:00
Victor Stinner
4487a46727
Merge 3.4 (Issue #25461 )
2015-10-23 12:39:20 +02:00
Victor Stinner
de6e800f45
Merge 3.4 (Issue #25461 )
2015-10-23 12:39:01 +02:00
Victor Stinner
0e316f688e
Issue #25461 : Rephrase os.walk() doc
...
Patch written by Bernt Røskar Brenna.
2015-10-23 12:38:11 +02:00
Martin Panter
3286031481
Merge sendfile() doc fixes from 3.5
2015-09-11 23:54:58 +00:00
Martin Panter
3133a9f5ab
socket.sendfile() is a method not a module
2015-09-11 23:44:18 +00:00
Martin Panter
f9b6875259
Issue #25063 : socket.sendfile() does not exist in 3.4
...
Remove notice that was backported in revision 50527a1b769c.
2015-09-11 23:39:34 +00:00
Martin Panter
3f560c16e5
Merge 3.5 into 3.6
2015-09-09 06:28:08 +00:00
Martin Panter
6088b7bd49
Merge 3.4 into 3.5
2015-09-09 06:27:43 +00:00
Martin Panter
9499413508
os.sendfile(headers=None, trailers=None) arguments are not actually accepted
...
Needs to be tested on a BSD.
2015-09-09 05:29:24 +00:00
Martin Panter
a122b5a1fd
Issue #23738 : Merge 3.5 into 3.6
2015-09-09 03:01:17 +00:00
Martin Panter
0ff89099c7
Issue #23738 : Merge 3.4 into 3.5
2015-09-09 01:56:53 +00:00
Martin Panter
bf19d16950
Issue #23738 : Document and test actual keyword parameter names
...
Also fix signature because os.utime(..., ns=None) is not allowed.
2015-09-09 01:01:13 +00:00
Victor Stinner
9f0b5e7097
Merge 3.5 (doc)
2015-07-29 02:29:54 +02:00
Victor Stinner
ace8848df6
What's New in Python 3.5: document os.urandom() changes
2015-07-29 02:28:32 +02:00
Charles-François Natali
dc87e4b885
Issue #23530 : Improve os.cpu_count() description.
...
Patch by Julian Taylor.
2015-07-13 21:01:39 +01:00
Victor Stinner
51b58325f9
Closes #24013 : Improve os.scandir() and DirEntry documentation
...
Patch written by Ben Hoyt.
2015-05-15 09:12:58 +02:00
Victor Stinner
56f6526085
os module doc: remove availability when useless
...
Remove "Availability: Unix, Windows." from os module documentation for
functions available on all platforms.
2015-05-15 09:11:59 +02:00
Berker Peksag
0f51d04b47
Issue #24062 : Fix os.stat links. Patch by July Tikhonov.
2015-04-27 13:53:54 +03:00
Berker Peksag
2034caa0c4
Issue #24062 : Fix os.stat links. Patch by July Tikhonov.
2015-04-27 13:53:28 +03:00
Steve Dower
fe0a41aae4
Issue #23668 : Adds support for os.truncate and os.ftruncate on Windows
2015-03-20 19:50:46 -07:00
Victor Stinner
708d9ba5a2
Issue #23618 : Document EINTR changes in socket documentation
2015-04-02 11:49:42 +02:00