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

multiprocessing.parent_process

Prev: multiprocessing.Manager | Up: multiprocessing | Next: multiprocessing.Pipe
Rel: multiprocessing.active_children, multiprocessing.allow_connection_pickling, multiprocessing.Array, multiprocessing.AuthenticationError
Ref: docs.python.org — multiprocessing.parent_process
Tags: #public #python3 #stdlib #multiprocessing


Import

import multiprocessing
from multiprocessing import parent_process

Signature & Overview

multiprocessing.parent_process()

Return process object representing the parent process

Usage

import multiprocessing as mp

assert mp.parent_process() is None   # None in the main process

Gotchas

REPL Inspect

from multiprocessing import parent_process
help(parent_process)

Linked from

Related notes