Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ queue_empty
Function
queue_empty
Lib/test/_test_multiprocessing.py:1027–1031 ·
view source on GitHub ↗
(q)
Source
from the content-addressed store, hash-verified
1025
#
1026
1027
def
queue_empty(q):
1028
if
hasattr(q,
'empty'
):
1029
return
q.empty()
1030
else
:
1031
return
q.qsize() == 0
1032
1033
def
queue_full(q, maxsize):
1034
if
hasattr(q,
'full'
):
Callers
2
test_put
Method · 0.85
test_get
Method · 0.85
Calls
3
hasattr
Function · 0.85
empty
Method · 0.45
qsize
Method · 0.45
Tested by
no test coverage detected