diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-09 13:55:38 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-09 13:55:38 (GMT) |
commit | 87fd76edb601322b8ce54444bed5ba864ad2c7bb (patch) | |
tree | bbd2daec87d2c5e8975efb148039b0b145655fdb /Doc/library/os.rst | |
parent | d3b41c63a6fc4f335773a1e2b834859ed48f604f (diff) | |
parent | a83cdaae89b9565bd3c6f78c14a23befcac24e76 (diff) | |
download | cpython-87fd76edb601322b8ce54444bed5ba864ad2c7bb.zip cpython-87fd76edb601322b8ce54444bed5ba864ad2c7bb.tar.gz cpython-87fd76edb601322b8ce54444bed5ba864ad2c7bb.tar.bz2 |
Issue #12326: document the recommended idiom for checking sys.platform on Unix systems.
Also, point to the various alternatives.
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r-- | Doc/library/os.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 447fa2e..6bd08c1 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -61,6 +61,13 @@ Notes on the availability of these functions: names have currently been registered: ``'posix'``, ``'nt'``, ``'mac'``, ``'os2'``, ``'ce'``, ``'java'``. + .. seealso:: + :attr:`sys.platform` has a finer granularity. :func:`os.uname` gives + system-dependent version information. + + The :mod:`platform` module provides detailed checks for the + system's identity. + .. _os-filenames: |