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

multiprocessing.freeze_support

Prev: multiprocessing.Event | Up: multiprocessing | Next: multiprocessing.get_all_start_methods
Rel: multiprocessing.active_children, multiprocessing.allow_connection_pickling, multiprocessing.Array, multiprocessing.AuthenticationError
Ref: docs.python.org — multiprocessing.freeze_support
Tags: #public #python3 #stdlib #multiprocessing


Import

import multiprocessing
from multiprocessing import freeze_support

Signature & Overview

multiprocessing.freeze_support()

Check whether this is a fake forked process in a frozen executable.

Usage

import multiprocessing as mp

# Required inside `if __name__ == "__main__":` for frozen Windows executables (PyInstaller/cx_Freeze)
mp.freeze_support()

Gotchas

REPL Inspect

from multiprocessing import freeze_support
help(freeze_support)

Linked from

Related notes