MCPcopy Index your code
hub / github.com/RustPython/RustPython / _partial_repr

Function _partial_repr

Lib/functools.py:359–366  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

357 return self
358
359def _partial_repr(self):
360 cls = type(self)
361 module = cls.__module__
362 qualname = cls.__qualname__
363 args = [repr(self.func)]
364 args.extend(map(repr, self.args))
365 args.extend(f"{k}={v!r}" for k, v in self.keywords.items())
366 return f"{module}.{qualname}({', '.join(args)})"
367
368# Purely functional, no descriptor behaviour
369class partial:

Callers

nothing calls this directly

Calls 4

reprFunction · 0.85
extendMethod · 0.45
itemsMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected