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

Method peek

tools/python-3.11.9-amd64/Lib/weakref.py:600–606  ·  view source on GitHub ↗

If alive then return (obj, func, args, kwargs); otherwise return None

(self)

Source from the content-addressed store, hash-verified

598 return (obj, info.func, info.args, info.kwargs or {})
599
600 def peek(self):
601 """If alive then return (obj, func, args, kwargs);
602 otherwise return None"""
603 info = self._registry.get(self)
604 obj = info and info.weakref()
605 if obj is not None:
606 return (obj, info.func, info.args, info.kwargs or {})
607
608 @property
609 def alive(self):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected