cpython: fd2c34e0104b (original) (raw)

--- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -267,9 +267,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 @@ -615,7 +615,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) @@ -743,7 +743,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

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] @@ -1714,9 +1714,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

.. data:: P_WAIT

.. function:: wait3(options) @@ -2229,8 +2229,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.111)

@@ -2241,9 +2242,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.

@@ -2467,8 +2468,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 directory, equivalent to getenv("HOME") in C. Modifying this dictionary does not affect the string environment passed on by