def put(self, item, priority = DEFAULT, block=1):
        """Put an item into the queue.

        If optional arg 'block' is 1 (the default), block if
        necessary until a free slot is available.  Otherwise (block
        is 0), put an item on the queue if a free slot is immediately
        available, else raise the Full exception.
        """
        assert self._queues.has_key(priority),"inexistent priority "+str(priority)
        self._acquirePUT(block)
        was_empty = self._empty()
        try:
            self._put(item, priority)
        finally:
            self._releasePUT(was_empty)
Put an item into the queue.

        If optional arg 'block' is 1 (the default), block if
        necessary until a free slot is available.  Otherwise (block
        is 0), put an item on the queue if a free slot is immediately
        available, else raise the Full exception.
        
recipes/Python/87707_Scheduled_Queue/recipe-87707.py