MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / _make_function

Function _make_function

cloudpickle/cloudpickle.py:520–523  ·  view source on GitHub ↗
(code, globals, name, argdefs, closure)

Source from the content-addressed store, hash-verified

518
519
520def _make_function(code, globals, name, argdefs, closure):
521 # Setting __builtins__ in globals is needed for nogil CPython.
522 globals["__builtins__"] = __builtins__
523 return types.FunctionType(code, globals, name, argdefs, closure)
524
525
526def _make_empty_cell():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected