def __init__(self, items=None, priorities=None):
self.priority_queue_list = []<EOL>if items is None:<EOL><INDENT>return<EOL><DEDENT>if priorities is None:<EOL><INDENT>priorities = itertools.repeat(None)<EOL><DEDENT>for item, priority in zip(items, priorities):<EOL><INDENT>self.push(item, priority=priority)<EOL><DEDENT>
Create a priority queue with items (list or iterable).
        If items is not passed, create empty priority queue.