mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
gh-97966: Update uname docs to clarify the special nature of the platform attribute and to indicate when it became late-bound. (#97972)
This commit is contained in:
parent
05e48865be
commit
018b2483c4
2 changed files with 10 additions and 4 deletions
|
@ -168,16 +168,20 @@ Cross Platform
|
||||||
containing six attributes: :attr:`system`, :attr:`node`, :attr:`release`,
|
containing six attributes: :attr:`system`, :attr:`node`, :attr:`release`,
|
||||||
:attr:`version`, :attr:`machine`, and :attr:`processor`.
|
:attr:`version`, :attr:`machine`, and :attr:`processor`.
|
||||||
|
|
||||||
Note that this adds a sixth attribute (:attr:`processor`) not present
|
:attr:`processor` is resolved late, on demand.
|
||||||
in the :func:`os.uname` result. Also, the attribute names are different
|
|
||||||
for the first two attributes; :func:`os.uname` names them
|
Note: the first two attribute names differ from the names presented by
|
||||||
:attr:`sysname` and :attr:`nodename`.
|
:func:`os.uname`, where they are named :attr:`sysname` and
|
||||||
|
:attr:`nodename`.
|
||||||
|
|
||||||
Entries which cannot be determined are set to ``''``.
|
Entries which cannot be determined are set to ``''``.
|
||||||
|
|
||||||
.. versionchanged:: 3.3
|
.. versionchanged:: 3.3
|
||||||
Result changed from a tuple to a :func:`~collections.namedtuple`.
|
Result changed from a tuple to a :func:`~collections.namedtuple`.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.9
|
||||||
|
:attr:`processor` is resolved late instead of immediately.
|
||||||
|
|
||||||
|
|
||||||
Java Platform
|
Java Platform
|
||||||
-------------
|
-------------
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Update uname docs to clarify the special nature of the platform attribute
|
||||||
|
and to indicate when it became late-bound.
|
Loading…
Add table
Add a link
Reference in a new issue