Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ queue_empty
Function
queue_empty
Lib/test/_test_multiprocessing.py:1174–1178 ·
view source on GitHub ↗
(q)
Source
from the content-addressed store, hash-verified
1172
#
1173
1174
def
queue_empty(q):
1175
if
hasattr(q,
'empty'
):
1176
return
q.empty()
1177
else
:
1178
return
q.qsize() == 0
1179
1180
def
queue_full(q, maxsize):
1181
if
hasattr(q,
'full'
):
Callers
3
test_put
Method · 0.85
test_get
Method · 0.85
run_tasks
Method · 0.85
Calls
2
empty
Method · 0.45
qsize
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…