On this page
  1. platform.node
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

platform.node

Prev: platform.machine | Up: platform | Next: platform.platform
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.node
Tags: #public #python3 #stdlib #platform


Import

import platform
from platform import node

Signature & Overview

platform.node()

Returns the computer's network name (which may not be fully qualified) An empty string is returned if the value cannot be determined.

Usage

import platform

assert isinstance(platform.node(), str)

Gotchas

REPL Inspect

from platform import node
help(node)

Linked from

Related notes