8000 gh-97966: Update uname docs to clarify the special nature of the platform attribute and to indicate when it became late-bound. by jaraco · Pull Request #97972 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-97966: Update uname docs to clarify the special nature of the platform attribute and to indicate when it became late 8000 -bound. #97972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Doc/library/platform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Update uname docs to clarify the special nature of the platform attribute
and to indicate when it became late-bound.
0