MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / pickle_game_state

Function pickle_game_state

example_code/item_107.py:116–118  ·  view source on GitHub ↗
(game_state)

Source from the content-addressed store, hash-verified

114
115print("Example 10")
116def pickle_game_state(game_state):
117 kwargs = game_state.__dict__
118 return unpickle_game_state, (kwargs,)
119
120
121print("Example 11")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected