inhahe wrote:
def __init__(self, filename, initial):should be def __init__(self, filename, initial=[]): (that was the whole reason i put the filename first.) sorry.
Defaulting initial to empty list this way is asking for trouble. You should default it to None and check for None and reset to empty list. -Larry -- http://mail.python.org/mailman/listinfo/python-list