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

Function _make_empty_cell

cloudpickle/cloudpickle.py:526–532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

524
525
526def _make_empty_cell():
527 if False:
528 # trick the compiler into creating an empty cell in our lambda
529 cell = None
530 raise AssertionError("this route should not be executed")
531
532 return (lambda: cell).__closure__[0]
533
534
535def _make_cell(value=_empty_cell_value):

Callers 3

_make_cellFunction · 0.85
_function_getnewargsMethod · 0.85

Calls

no outgoing calls

Tested by 1