On Sat, Feb 11, 2012 at 10:54 AM, Ian Kelly <[email protected]> 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
--
http://mail.python.org/mailman/listinfo/python-list
