>> x = DefaultAttr(99) >> print x.foo 99 >> print x.bar 99 >> x.foo = 7 >> print x.foo 7
I already have a similar class called DefaultDict which works similarly which I assume would be a good thing to use.
Lowell -- http://mail.python.org/mailman/listinfo/python-list