class documentation

class FakeQueue: (source)

View In Hierarchy

A fake Queue implementing put and get.

Method __init__ Create a FakeQueue.
Method get Get an item.
Method put Put an item into the queue for later retrieval by FakeQueue.get.
Instance Variable items A lit of items placed by put but not yet retrieved by get.
def __init__(self): (source)

Create a FakeQueue.

def get(self): (source)

Get an item.

Returns
an item previously put by put.
def put(self, item): (source)

Put an item into the queue for later retrieval by FakeQueue.get.

Parameters
itemany object

A lit of items placed by put but not yet retrieved by get.