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

resource.struct_rusage

Prev: resource.setrlimit | Up: resource
Rel: resource.error, resource.getpagesize, resource.getrlimit, resource.getrusage
Ref: docs.python.org โ€” resource.struct_rusage
Tags: #public #python3 #stdlib #resource


Import

import resource
from resource import struct_rusage

Signature & Overview

resource.struct_rusage(iterable=(), /)

struct_rusage: Result from getrusage.

Methods & Attributes

Usage

import resource

assert isinstance(resource.getrusage(resource.RUSAGE_SELF), resource.struct_rusage)

Gotchas

REPL Inspect

from resource import struct_rusage
help(struct_rusage)

Linked from

Related notes