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

Method some_function

tests/cloudpickle_test.py:402–405  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

400 LOCAL_CONSTANT = 42
401
402 def some_function(x, y):
403 # Make sure the __builtins__ are not broken (see #211)
404 sum(range(10))
405 return (x + y) / LOCAL_CONSTANT
406
407 # pickle the function definition
408 result = pickle_depickle(some_function, protocol=self.protocol)(41, 1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected