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

os.getppid

Prev: os.getpid | Up: os | Next: os.kill
Rel: os.abort, os.access, os.chdir, os.chmod
Ref: docs.python.org — os.getppid
Tags: #public #python3 #stdlib #os


Import

import os
from os import getppid

Signature & Overview

os.getppid()

Return the parent's process id.

Usage

import os

ppid = os.getppid()
assert isinstance(ppid, int) and ppid >= 0

Gotchas

REPL Inspect

from os import getppid
help(getppid)

Linked from

Related notes