MCPcopy Index your code
hub / github.com/python/cpython / assert_spawning

Function assert_spawning

Lib/multiprocessing/context.py:381–386  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

379 _tls.spawning_popen = popen
380
381def assert_spawning(obj):
382 if get_spawning_popen() is None:
383 raise RuntimeError(
384 '%s objects should only be shared between processes'
385 ' through inheritance' % type(obj).__name__
386 )

Callers 3

reduce_ctypeFunction · 0.85
__reduce__Method · 0.85
__getstate__Method · 0.85

Calls 1

get_spawning_popenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…