def get(self, block=1):
        """Remove and return an item from the queue.

        If optional arg 'block' is 1 (the default), block if
        necessary until an item is available.  Otherwise (block is 0),
        return an item if one is immediately available, else raise the
        Empty exception.
        """
        self._acquireGET(block)
        was_full = self._full()
        try:
            item = self._get()
        finally:
            self._releaseGET(was_full)        
        return item
Remove and return an item from the queue.

        If optional arg 'block' is 1 (the default), block if
        necessary until an item is available.  Otherwise (block is 0),
        return an item if one is immediately available, else raise the
        Empty exception.
        
recipes/Python/87707_Scheduled_Queue/recipe-87707.py