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

Method function_factory

tests/cloudpickle_test.py:2511–2516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2509
2510 def test_cloudpickle_extract_nested_globals(self):
2511 def function_factory():
2512 def inner_function():
2513 global _TEST_GLOBAL_VARIABLE
2514 return _TEST_GLOBAL_VARIABLE
2515
2516 return inner_function
2517
2518 globals_ = set(
2519 cloudpickle.cloudpickle._extract_code_globals(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected