MCPcopy
hub / github.com/Nuitka/Nuitka / functionLenList

Function functionLenList

tests/basics/NestedLoopsTest27.py:385–394  ·  view source on GitHub ↗

len() on list from nested loop.

()

Source from the content-addressed store, hash-verified

383
384
385def functionLenList():
386 """len() on list from nested loop."""
387 data = [[1, 2], [3, 4, 5]]
388 result = None
389 for group in data:
390 for val in group:
391 if result is None:
392 result = []
393 result.append(val)
394 print("len_list:", len(result))
395
396
397# ---------------------------------------------------------------------------

Callers 1

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…