MCPcopy Create free account
hub / github.com/ActiveState/code / new

Method new

recipes/Python/576808_statemethod/recipe-576808.py:18–20  ·  view source on GitHub ↗

Create a new Base object with this as the initial state.

(cls)

Source from the content-addressed store, hash-verified

16
17 @classmethod
18 def new(cls):
19 """Create a new Base object with this as the initial state."""
20 return Base(cls.get_state())
21
22 @classmethod
23 def get_state(cls):

Callers 15

recipe-577866.pyFile · 0.45
draw_fractalFunction · 0.45
dropShadowFunction · 0.45
recipe-577814.pyFile · 0.45
mainFunction · 0.45
recipe-577316.pyFile · 0.45
__newsidMethod · 0.45
recipe-576810.pyFile · 0.45
passwordToKeyFunction · 0.45
recipe-577353.pyFile · 0.45
recipe-577176.pyFile · 0.45
md5_from_pathFunction · 0.45

Calls 2

BaseClass · 0.70
get_stateMethod · 0.45

Tested by

no test coverage detected