MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __reduce__

Method __reduce__

tools/python-3.11.9-amd64/Lib/operator.py:329–334  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

327 ', '.join(args))
328
329 def __reduce__(self):
330 if not self._kwargs:
331 return self.__class__, (self._name,) + self._args
332 else:
333 from functools import partial
334 return partial(self.__class__, self._name, **self._kwargs), self._args
335
336
337# In-place Operations *********************************************************#

Callers

nothing calls this directly

Calls 1

partialClass · 0.90

Tested by

no test coverage detected