def __iter__():
        'Show task in order of priority'
        pq.sort()
        for priority, count, task in pq:
            if task is not REMOVED:
                yield task
Show task in order of priority
recipes/Python/578091_Simple_tool_simulating_classes_using_closures/recipe-578091.py