MCPcopy Index your code
hub / github.com/python/cpython / __reduce__

Method __reduce__

Lib/operator.py:337–342  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

335 ', '.join(args))
336
337 def __reduce__(self):
338 if not self._kwargs:
339 return self.__class__, (self._name,) + self._args
340 else:
341 from functools import partial
342 return partial(self.__class__, self._name, **self._kwargs), self._args
343
344
345# In-place Operations *********************************************************#

Callers

nothing calls this directly

Calls 1

partialClass · 0.90

Tested by

no test coverage detected