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

Method __reduce__

IPython/lib/tests/test_pretty.py:460–461  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

458 return '%s(%r)' % (self.__class__.__name__, OrderedDict(self))
459
460 def __reduce__(self):
461 return self.__class__, (OrderedDict(self),)
462
463class MySet(set): # Override repr of a basic type
464 def __repr__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected