On Feb 11, 10:56 am, Ian Kelly <ian.g.ke...@gmail.com> wrote: > On Sat, Feb 11, 2012 at 10:54 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > > class Dog(dict): > > > def __missing__(self): > > return 0 > > Sorry, that should have been: > > class Dog(dict): > > def __missing__(self, key): > return 0 > > Cheers, > Ian
Thanks Ian! -- http://mail.python.org/mailman/listinfo/python-list