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

Method list

tools/python-3.11.9-amd64/Lib/pydoc.py:2177–2188  ·  view source on GitHub ↗
(self, items, columns=4, width=80)

Source from the content-addressed store, hash-verified

2175'''.format('%d.%d' % sys.version_info[:2]))
2176
2177 def list(self, items, columns=4, width=80):
2178 items = list(sorted(items))
2179 colw = width // columns
2180 rows = (len(items) + columns - 1) // columns
2181 for row in range(rows):
2182 for col in range(columns):
2183 i = col * rows + row
2184 if i < len(items):
2185 self.output.write(items[i])
2186 if col < columns - 1:
2187 self.output.write(' ' + ' ' * (colw - 1 - len(items[i])))
2188 self.output.write('\n')
2189
2190 def listkeywords(self):
2191 self.output.write(''&#x27;

Callers 4

listkeywordsMethod · 0.95
listsymbolsMethod · 0.95
listtopicsMethod · 0.95
listmodulesMethod · 0.95

Calls 3

listFunction · 0.85
sortedFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected