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

Method __init__

Lib/queue.py:325–327  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

323 # This allows the C version to use a different implementation.
324
325 def __init__(self):
326 self._queue = deque()
327 self._count = threading.Semaphore(0)
328
329 def put(self, item, block=True, timeout=None):
330 '''Put the item on the queue.

Callers

nothing calls this directly

Calls 1

SemaphoreMethod · 0.80

Tested by

no test coverage detected