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

Class MaybeEncodingError

Lib/multiprocessing/pool.py:80–94  ·  view source on GitHub ↗

Wraps possible unpickleable errors, so they can be safely sent through the socket.

Source from the content-addressed store, hash-verified

78#
79
80class MaybeEncodingError(Exception):
81 """Wraps possible unpickleable errors, so they can be
82 safely sent through the socket."""
83
84 def __init__(self, exc, value):
85 self.exc = repr(exc)
86 self.value = repr(value)
87 super(MaybeEncodingError, self).__init__(self.exc, self.value)
88
89 def __str__(self):
90 return "Error sending result: '%s'. Reason: '%s'" % (self.value,
91 self.exc)
92
93 def __repr__(self):
94 return "<%s: %s>" % (self.__class__.__name__, self)
95
96
97def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None,

Callers 1

workerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…