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

Function _flatten

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:87–95  ·  view source on GitHub ↗

Internal function.

(seq)

Source from the content-addressed store, hash-verified

85
86
87def _flatten(seq):
88 """Internal function."""
89 res = ()
90 for item in seq:
91 if isinstance(item, (tuple, list)):
92 res = res + _flatten(item)
93 elif item is not None:
94 res = res + (item,)
95 return res
96
97
98try: _flatten = _tkinter._flatten

Callers 6

_format_optdictFunction · 0.90
_format_mapdictFunction · 0.90
_cnfmergeFunction · 0.70
tk_setPaletteMethod · 0.70
_configureMethod · 0.70
_createMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected