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

Function do_call

Lib/concurrent/futures/interpreter.py:9–22  ·  view source on GitHub ↗
(results, func, args, kwargs)

Source from the content-addressed store, hash-verified

7
8
9def do_call(results, func, args, kwargs):
10 try:
11 return func(*args, **kwargs)
12 except BaseException as exc:
13 # Send the captured exception out on the results queue,
14 # but still leave it unhandled for the interpreter to handle.
15 try:
16 results.put(exc)
17 except interpreters.NotShareableError:
18 # The exception is not shareable.
19 print('exception is not shareable:', file=sys.stderr)
20 traceback.print_exception(exc)
21 results.put(None)
22 raise # re-raise
23
24
25class WorkerContext(_thread.WorkerContext):

Callers

nothing calls this directly

Calls 2

funcFunction · 0.50
putMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…