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

Method show_globals

Lib/idlelib/debugger.py:372–382  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

370 self.show_variables()
371
372 def show_globals(self):
373 gv = self.globalsviewer
374 if self.vglobals.get():
375 if not gv:
376 self.globalsviewer = NamespaceViewer(self.fglobals, "Globals")
377 else:
378 if gv:
379 self.globalsviewer = None
380 gv.close()
381 self.fglobals['height'] = 1
382 self.show_variables()
383
384 def show_variables(self, force=0):
385 lv = self.localsviewer

Callers 1

make_guiMethod · 0.95

Calls 4

show_variablesMethod · 0.95
NamespaceViewerClass · 0.85
getMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected