On this page
posix.uname_result
Prev: posix.times_result | Up: posix | Next: posix.waitid_result
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org โ posix.uname_result
Tags: #public #python3 #stdlib #posix
Import
import posix
from posix import uname_result
Signature & Overview
posix.uname_result(iterable=(), /)
uname_result: Result from os.uname().
Methods & Attributes
uname_result.count(self, value, /)โ Return number of occurrences of value.uname_result.index(self, value, start=0, stop=9223372036854775807, /)โ Return first index of value.
Usage
import os
assert isinstance(os.uname(), os.uname_result)
Gotchas
- Unix-only: Use
platform.uname()for cross-platform code.
REPL Inspect
from posix import uname_result
help(uname_result)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/times_result Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/waitid_result Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib