"Bart Cramer" <[EMAIL PROTECTED]> wrote
Does anybody know why this is the case? And what would be the most
convenient solution to enforce the dynamic creation of the
dictionary?
Kent answered the first bit.
For the second try
def __init__(self, d=None):
if not d:
d = {}
self.d = d
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor