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

Method pop

tools/python-3.11.9-amd64/Lib/weakref.py:261–274  ·  view source on GitHub ↗
(self, key, *args)

Source from the content-addressed store, hash-verified

259 return key, o
260
261 def pop(self, key, *args):
262 if self._pending_removals:
263 self._commit_removals()
264 try:
265 o = self.data.pop(key)()
266 except KeyError:
267 o = None
268 if o is None:
269 if args:
270 return args[0]
271 else:
272 raise KeyError(key)
273 else:
274 return o
275
276 def setdefault(self, key, default=None):
277 try:

Callers

nothing calls this directly

Calls 2

_commit_removalsMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected