MCPcopy Create free account
hub / github.com/ipython/ipython / __getstate__

Method __getstate__

IPython/core/macro.py:44–46  ·  view source on GitHub ↗

needed for safe pickling via %store

(self)

Source from the content-addressed store, hash-verified

42 return 'IPython.macro.Macro(%s)' % repr(self.value)
43
44 def __getstate__(self):
45 """ needed for safe pickling via %store """
46 return {'value': self.value}
47
48 def __add__(self, other):
49 if isinstance(other, Macro):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected