On Thu, Aug 14, 2008 at 1:32 PM, Alan Gauld <alan.gauld at btinternet.com> 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