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

Method _put

Lib/test/test_queue.py:720–724  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

718 self.fail_next_get = False
719 Queue.__init__(self, *args)
720 def _put(self, item):
721 if self.fail_next_put:
722 self.fail_next_put = False
723 raise FailingQueueException("You Lose")
724 return Queue._put(self, item)
725 def _get(self):
726 if self.fail_next_get:
727 self.fail_next_get = False

Callers

nothing calls this directly

Calls 2

_putMethod · 0.45

Tested by

no test coverage detected