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

pwd.getpwall

Up: pwd | Next: pwd.getpwnam
Rel: pwd.getpwnam, pwd.getpwuid, pwd.struct_passwd
Ref: docs.python.org — pwd.getpwall
Tags: #public #python3 #stdlib #pwd


Import

import pwd
from pwd import getpwall

Signature & Overview

pwd.getpwall()

Return a list of all available password database entries, in arbitrary order.

Usage

import pwd

entries = pwd.getpwall()
assert isinstance(entries, list) and len(entries) >= 1

Gotchas

REPL Inspect

from pwd import getpwall
help(getpwall)

Linked from

Related notes