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

Function _flatten

Lib/tkinter/__init__.py:91–99  ·  view source on GitHub ↗

Internal function.

(seq)

Source from the content-addressed store, hash-verified

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

Callers 7

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

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…