> 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.

Good catch. I agree.

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to