Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ empty
Method
empty
Lib/multiprocessing/queues.py:372–373 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
370
self._writer.close()
371
372
def
empty(self):
373
return
not self._poll()
374
375
def
__getstate__(self):
376
context.assert_spawning(self)
Callers
2
test_empty_exceptions
Method · 0.95
test_empty
Method · 0.95
Calls
1
_poll
Method · 0.45
Tested by
2
test_empty_exceptions
Method · 0.76
test_empty
Method · 0.76