ยปCore Development>Code coverage>Lib/multiprocessing/__init__.py

Python code coverage for Lib/multiprocessing/__init__.py

#countcontent
1n/a#
2n/a# Package analogous to 'threading.py' but using processes
3n/a#
4n/a# multiprocessing/__init__.py
5n/a#
6n/a# This package is intended to duplicate the functionality (and much of
7n/a# the API) of threading.py but uses processes instead of threads. A
8n/a# subpackage 'multiprocessing.dummy' has the same API but is a simple
9n/a# wrapper for 'threading'.
10n/a#
11n/a# Copyright (c) 2006-2008, R Oudkerk
12n/a# Licensed to PSF under a Contributor Agreement.
13n/a#
14n/a
15n/aimport sys
16n/afrom . import context
17n/a
18n/a#
19n/a# Copy stuff from default context
20n/a#
21n/a
22n/aglobals().update((name, getattr(context._default_context, name))
23n/a for name in context._default_context.__all__)
24n/a__all__ = context._default_context.__all__
25n/a
26n/a#
27n/a# XXX These should not really be documented or public.
28n/a#
29n/a
30n/aSUBDEBUG = 5
31n/aSUBWARNING = 25
32n/a
33n/a#
34n/a# Alias for main module -- will be reset by bootstrapping child processes
35n/a#
36n/a
37n/aif '__main__' in sys.modules:
38n/a sys.modules['__mp_main__'] = sys.modules['__main__']