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

Method up

Lib/test/test_monitoring.py:344–351  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

342 errors = []
343 seen = set()
344 def up(*args):
345 frame = sys._getframe(1)
346 if not stack:
347 errors.append("empty")
348 else:
349 expected = stack.pop()
350 if frame != expected:
351 errors.append(f" Popping {frame} expected {expected}")
352 def down(*args):
353 frame = sys._getframe(1)
354 stack.append(frame)

Callers 5

demo2Function · 0.80
designMethod · 0.80
wheelMethod · 0.80
tripieceMethod · 0.80
pentpieceMethod · 0.80

Calls 2

appendMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected