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

Function getExampleEntries

Lib/turtledemo/__main__.py:115–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113font_sizes = [8, 9, 10, 11, 12, 14, 18, 20, 22, 24, 30]
114
115def getExampleEntries():
116 return [entry[:-3] for entry in os.listdir(demo_dir) if
117 entry.endswith(".py") and entry[0] != '_']
118
119help_entries = ( # (help_label, help_doc)
120 ('Turtledemo help', __doc__),

Callers 1

makeLoadDemoMenuMethod · 0.85

Calls 2

listdirMethod · 0.80
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…