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

Method func

tests/cloudpickle_test.py:1464–1465  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1462 # carried out on the entries of sys.modules, causing cloupdickle to
1463 # then error in unexpected ways
1464 def func(x):
1465 return x**2
1466
1467 # Trigger a loop during the execution of whichmodule(func) by
1468 # explicitly setting the function's module to None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected