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

Method f2

tests/cloudpickle_test.py:280–284  ·  view source on GitHub ↗
(base)

Source from the content-addressed store, hash-verified

278 return g
279
280 def f2(base):
281 def g(n):
282 return base if n <= 1 else n * g(n - 1)
283
284 return g
285
286 g1 = pickle_depickle(f1(), protocol=self.protocol)
287 self.assertEqual(g1(), g1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected