problems with shelve(), collections.defaultdict, self

Ian Kelly ian.g.kelly at gmail.com
Sat Feb 11 12:56:12 EST 2012


On Sat, Feb 11, 2012 at 10:54 AM, Ian Kelly <ian.g.kelly at 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



More information about the Python-list mailing list