Skip to content

Commit be81655

Browse files
committed
Correct usage of "release" and "version" in uname
1 parent 0abc9be commit be81655

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Doc/library/os.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,9 +802,9 @@ process and user.
802802
Returns information identifying the current operating system.
803803
The return value is a :class:`uname_result`.
804804

805-
On macOS, iOS and Android, this returns the *kernel* name and version (i.e.,
805+
On macOS, iOS and Android, this returns the *kernel* name and release (i.e.,
806806
``'Darwin'`` on macOS and iOS; ``'Linux'`` on Android). :func:`platform.uname`
807-
can be used to get the user-facing operating system name and version on iOS and
807+
can be used to get the user-facing operating system name and release on iOS and
808808
Android.
809809

810810
.. seealso::

Doc/library/platform.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ Cross platform
141141
Returns the system's release, e.g. ``'2.2.0'`` or ``'NT'``. An empty string is
142142
returned if the value cannot be determined.
143143

144+
On iOS and Android, this is the user-facing OS release. To obtain the
145+
Darwin or Linux kernel release, use :func:`os.uname`.
144146

145147
.. function:: system()
146148

@@ -163,9 +165,6 @@ Cross platform
163165
Returns the system's release version, e.g. ``'#3 on degas'``. An empty string is
164166
returned if the value cannot be determined.
165167

166-
On iOS and Android, this is the user-facing OS version. To obtain the
167-
Darwin or Linux kernel version, use :func:`os.uname`.
168-
169168
.. function:: uname()
170169

171170
Fairly portable uname interface. Returns a :func:`~collections.namedtuple`

0 commit comments

Comments
 (0)