(self)
return queue.peek()
Returns the next object to be returned by :meth:`pop`,
        but without removing it from the queue.

        Raises :exc:`NotImplementedError` if the underlying queue class does
        not implement a ``peek`` method, which is optional for queues.
Returns the next object to be returned by :meth:`pop`,
        but without removing it from the queue.
Returns the next object to be returned by : meth : pop but without removing it from the queue .
def peek(self):
        """Returns the next object to be returned by :meth:`pop`,
        but without removing it from the queue.

        Raises :exc:`NotImplementedError` if the underlying queue class does
        not implement a ``peek`` method, which is optional for queues.
        """
        if self.curprio is None:
            return None
        queue = self.queues[self.curprio]
        return queue.peek()
def peek ( self ) : if self . curprio is None : return None queue = self . queues [ self . curprio ] return queue . peek ( )