# # Python module that supports a pending list of items for a listener to # execute. The queue must keep a disk-stored copy of itself at all times. # import os, marshal class PendingQueue: ''' Allows for storing a list of objects, and keeping it syncronized with an on-disk store. At creation time, the on-disk store will be loaded and restored, if it exists. ''' def __init__(self, filename): ''' Setup the queue, potentially loading the state from the given file. If the file doesn't exist, then it will be created with an empty data set. ''' pass pass