> py> def __init__(self, arg = []): > py> self.__list = arg
Please don't perpetuate this bad habit!!! "arg=[]" is evaluated at compile time, not runtime, and will give all default-inited llists the same underlying list. The correct idiom is: def __init__(self, arg = None): if arg is not None: self.__list = arg else: self.__list = [] -- Paul -- http://mail.python.org/mailman/listinfo/python-list