(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.
        """
        stats = self._downloader_interface.stats(self.pqueues)
        if not stats:
            return None
        slot = min(stats)[1]
        queue = self.pqueues[slot]
        return queue.peek()
def peek ( self ) : stats = self . _downloader_interface . stats ( self . pqueues ) if not stats : return None slot = min ( stats ) [ 1 ] queue = self . pqueues [ slot ] return queue . peek ( )