On Thu, Aug 14, 2008 at 1:32 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > For the second try > > def __init__(self, d=None): > if not d:
I would use if d is None: so the user can explicitly pass e.g. an empty dict. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor