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

Method __repr__

Lib/weakref.py:527–534  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

525 info.atexit = bool(value)
526
527 def __repr__(self):
528 info = self._registry.get(self)
529 obj = info and info.weakref()
530 if obj is None:
531 return '<%s object at %#x; dead>' % (type(self).__name__, id(self))
532 else:
533 return '<%s object at %#x; for %r at %#x>' % \
534 (type(self).__name__, id(self), type(obj).__name__, id(obj))
535
536 @classmethod
537 def _select_for_exit(cls):

Callers

nothing calls this directly

Calls 2

idFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected