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

Method __reduce__

Lib/multiprocessing/managers.py:911–922  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

909 util.info('incref failed: %s' % e)
910
911 def __reduce__(self):
912 kwds = {}
913 if get_spawning_popen() is not None:
914 kwds['authkey'] = self._authkey
915
916 if getattr(self, '_isauto', False):
917 kwds['exposed'] = self._exposed_
918 return (RebuildProxy,
919 (AutoProxy, self._token, self._serializer, kwds))
920 else:
921 return (RebuildProxy,
922 (type(self), self._token, self._serializer, kwds))
923
924 def __deepcopy__(self, memo):
925 return self._getvalue()

Callers

nothing calls this directly

Calls 1

get_spawning_popenFunction · 0.85

Tested by

no test coverage detected