Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dab83549
Commit
dab83549
authored
Oct 13, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19207: Improved cross-references in the os, os.path, and posix modules
documentation.
parent
5e1c053f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
34 deletions
+36
-34
Doc/library/os.path.rst
Doc/library/os.path.rst
+3
-3
Doc/library/os.rst
Doc/library/os.rst
+28
-27
Doc/library/posix.rst
Doc/library/posix.rst
+5
-4
No files found.
Doc/library/os.path.rst
View file @
dab83549
...
...
@@ -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.
These structures may have been returned by :func:`
fstat`, :func:`lstat`, or
:func:`
stat`. This function implements the underlying comparison used by
:func:`samefile` and :func:`sameopenfile`.
These structures may have been returned by :func:`
os.fstat`,
:func:`
os.lstat`, or :func:`os.stat`. This function implements the
underlying comparison used by
:func:`samefile` and :func:`sameopenfile`.
Availability: Unix.
...
...
Doc/library/os.rst
View file @
dab83549
This diff is collapsed.
Click to expand it.
Doc/library/posix.rst
View file @
dab83549
...
...
@@ -19,7 +19,7 @@ systems the :mod:`posix` module is not available, but a subset is always
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 in the :mod:`os` module documentation,
pathname of your home directory, equivalent to ``getenv("HOME")`` in C.
Modifying this dictionary does not affect the string environment passed on by
:func:`execv`, :func:`popen` or :func:`system`; if you need to change the
environment, pass ``environ`` to :func:`execve` or add variable assignments and
export statements to the command string for :func:`system` or :func:`popen`.
:func:`~os.execv`, :func:`~os.popen` or :func:`~os.system`; if you need to
change the environment, pass ``environ`` to :func:`~os.execve` or add
variable assignments and export statements to the command string for
:func:`~os.system` or :func:`~os.popen`.
.. versionchanged:: 3.2
On Unix, keys and values are bytes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment