queue
index
c:\users\pattis\workspace\courselib\queue.py

 
Classes
       
builtins.object
Queue

 
class Queue(builtins.object)
    Implements a Queue data type: values are removed
  according to the first-in-first-out (FIFO) rule.
 
  Methods defined here:
__add__(self, x)
Overload syntax: q = q + x is the same as q.add(x)
__bool__(self)
Determine the truth of a queue: non-empty queues are True
__init__(self, inital_contents=[])
Queue is constructed to store initial_contents (it can be any iterable).
__iter__(self)
Implement the constructor for the iterator protocol
__str__(self)
Return a string representation of a queue
add(self, v)
Add value v to the queue
clear(self)
Clear the queue
is_empty(self)
Return whether the queue is empty
peek(self)
Return (but do not remove) the value at the front of the queue
remove(self)
Remove and return the value at the front of the queue
size(self)
Return the number of values in the queue

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)