def full ( self ) : if not self . size : return False return len ( self . pq ) == ( self . size + self . removed_count )
check if a queue is empty in python
Return True if the queue is full
def full(self):
        """Return True if the queue is full"""
        if not self.size: return False
        return len(self.pq) == (self.size + self.removed_count)