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

Function enumerate

Lib/threading.py:1513–1522  ·  view source on GitHub ↗

Return a list of all Thread objects currently alive. The list includes daemonic threads, dummy thread objects created by current_thread(), and the main thread. It excludes terminated threads and threads that have not yet been started.

()

Source from the content-addressed store, hash-verified

1511 return list(_active.values()) + list(_limbo.values())
1512
1513def enumerate():
1514 """Return a list of all Thread objects currently alive.
1515
1516 The list includes daemonic threads, dummy thread objects created by
1517 current_thread(), and the main thread. It excludes terminated threads and
1518 threads that have not yet been started.
1519
1520 """
1521 with _active_limbo_lock:
1522 return list(_active.values()) + list(_limbo.values())
1523
1524
1525_threading_atexits = []

Callers 15

get_para_line_numbersFunction · 0.85
_make_rowMethod · 0.85
imaplib.pyFile · 0.85
_partial_prepare_mergerFunction · 0.85
_c3_mroFunction · 0.85
_strptimeFunction · 0.85
_splitlines_no_ffFunction · 0.85
pickletools.pyFile · 0.85
filemodeFunction · 0.85
gettext.pyFile · 0.85
_parseMethod · 0.85
itermonthdays2Method · 0.85

Calls 2

listClass · 0.85
valuesMethod · 0.45

Tested by 15

_check_prompt_blankMethod · 0.68
_check_prefixMethod · 0.68
_find_linenoMethod · 0.68
__runMethod · 0.68
test_readlineMethod · 0.68
test_bug1175396Method · 0.68
test_nameprepMethod · 0.68
many_groupsMethod · 0.68
check_swap_fdsMethod · 0.68
get_binop_argvalFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…