diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-10-30 15:53:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 15:53:58 (GMT) |
commit | 018b2483c422031ba5a6084238ab66ba44ea9fcf (patch) | |
tree | 6cd33c7d0d95ff72123df9dfee82d916aadc2c52 /Doc | |
parent | 05e48865be69e1e5824f6915b588ff054717bb42 (diff) | |
download | cpython-018b2483c422031ba5a6084238ab66ba44ea9fcf.zip cpython-018b2483c422031ba5a6084238ab66ba44ea9fcf.tar.gz cpython-018b2483c422031ba5a6084238ab66ba44ea9fcf.tar.bz2 |
gh-97966: Update uname docs to clarify the special nature of the platform attribute and to indicate when it became late-bound. (#97972)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/platform.rst | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Doc/library/platform.rst b/Doc/library/platform.rst index dc2d871..a0c9f63 100644 --- a/Doc/library/platform.rst +++ b/Doc/library/platform.rst @@ -168,16 +168,20 @@ Cross Platform containing six attributes: :attr:`system`, :attr:`node`, :attr:`release`, :attr:`version`, :attr:`machine`, and :attr:`processor`. - Note that this adds a sixth attribute (:attr:`processor`) not present - in the :func:`os.uname` result. Also, the attribute names are different - for the first two attributes; :func:`os.uname` names them - :attr:`sysname` and :attr:`nodename`. + :attr:`processor` is resolved late, on demand. + + Note: the first two attribute names differ from the names presented by + :func:`os.uname`, where they are named :attr:`sysname` and + :attr:`nodename`. Entries which cannot be determined are set to ``''``. .. versionchanged:: 3.3 Result changed from a tuple to a :func:`~collections.namedtuple`. + .. versionchanged:: 3.9 + :attr:`processor` is resolved late instead of immediately. + Java Platform ------------- |