cpython: 7ea984fc9be1 (original) (raw)

--- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -273,9 +273,9 @@ the :mod:glob module.) .. function:: samestat(stat1, stat2) Return True if the stat tuples stat1 and stat2 refer to the same file.

--- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -643,7 +643,7 @@ process will then be assigned 3, 4, 5, a is slightly deceptive; on Unix platforms, sockets and pipes are also referenced by file descriptors. -The :meth:~file.fileno method can be used to obtain the file descriptor +The :meth:~io.IOBase.fileno method can be used to obtain the file descriptor associated with a :term:file object when required. Note that using the file descriptor directly will bypass the file object methods, ignoring aspects such as internal buffering of data. @@ -660,7 +660,7 @@ as internal buffering of data. This function is intended for low-level I/O and must be applied to a file descriptor as returned by :func:os.open or :func:pipe. To close a "file object" returned by the built-in function :func:open or by :func:popen or

.. function:: closerange(fd_low, fd_high) @@ -821,7 +821,7 @@ as internal buffering of data. Set the current position of file descriptor fd to position pos, modified by how: :const:SEEK_SET or 0 to set the position relative to the beginning of the file; :const:SEEK_CUR or 1 to set it relative to the

.. data:: supports_dir_fd

.. data:: supports_effective_ids

.. data:: supports_fd

.. data:: supports_follow_symlinks

These functions may be used to create and manage processes. -The various :func:exec\* functions take a list of arguments for the new +The various :func:exec\* <execl> functions take a list of arguments for the new program loaded into the process. In each case, the first of these arguments is passed to the new program as its own name rather than as an argument a user may have typed on a command line. For the C programmer, this is the argv[0] @@ -2386,9 +2386,9 @@ to be ignored. descriptors are not flushed, so if there may be data buffered on these open files, you should flush them using :func:sys.stdout.flush or :func:os.fsync before calling an

.. function:: popen(...)

.. data:: P_WAIT

@@ -2918,8 +2917,8 @@ written in Python, such as a mail server (shifting makes cross-platform use of the function easier). A pid less than or equal to 0 has no special meaning on Windows, and raises an exception. The value of integer options has no effect. pid can refer to any process whose

.. function:: wait3(options) @@ -2927,8 +2926,9 @@ written in Python, such as a mail server Similar to :func:waitpid, except no process id argument is given and a 3-element tuple containing the child's process id, exit status indication, and resource usage information is returned. Refer to :mod:resource.[](#l2.169)

@@ -2937,9 +2937,9 @@ written in Python, such as a mail server Similar to :func:waitpid, except a 3-element tuple, containing the child's process id, exit status indication, and resource usage information is returned.

@@ -3272,8 +3272,9 @@ Higher-level operations on pathnames are .. data:: defpath

.. data:: linesep

--- a/Doc/library/posix.rst +++ b/Doc/library/posix.rst @@ -19,7 +19,7 @@ systems the :mod:posix module is not a available through the :mod:os interface. Once :mod:os is imported, there is no performance penalty in using it instead of :mod:posix. In addition, :mod:os provides some additional functionality, such as automatically calling -:func:putenv when an entry in os.environ is changed. +:func:~os.putenv when an entry in os.environ is changed. Errors are reported as exceptions; the usual exceptions are given for type errors, while errors reported by the system calls raise :exc:OSError. @@ -74,9 +74,10 @@ In addition to many functions described pathname of your home directory, equivalent to getenv("HOME") in C. Modifying this dictionary does not affect the string environment passed on by