MCPcopy Index your code
hub / github.com/RustPython/RustPython / enumerate

Function enumerate

Lib/threading.py:1520–1529  ·  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

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

Callers 15

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
charmap_buildFunction · 0.85
PyUnicode_EncodeUTF7Function · 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