On this page
  1. os.uname_result
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

os.uname_result

Prev: os.times_result | Up: os | Next: os.unlink
Rel: os.abort, os.access, os.chdir, os.chmod
Ref: docs.python.org โ€” os.uname_result
Tags: #public #python3 #stdlib #os


Import

import os
from os import uname_result

Signature & Overview

os.uname_result(iterable=(), /)

uname_result: Result from os.uname().

Methods & Attributes

Usage

import os

if hasattr(os, "uname"):
    u = os.uname()
    assert isinstance(u, os.uname_result) and len(u.sysname) > 0

Gotchas

REPL Inspect

from os import uname_result
help(uname_result)

Linked from

Related notes