Hi there, apart from the "gry"-typo, the currect CVS-code

    > really is in a broken state after my patch was applied
    > and half-way reverted back. (The python2.2-pop problem)

    > Possible solutions:

    > * change "kwargs.get('xxx',def)" to
    > "popd(kwargs,'xxx',def)" and add popd to the import from
    > cbook

Here is what I committed to CVS earlier today in axes.Axes.legend

        if len(args)==0:
            labels = [line.get_label() for line in self.lines]
            lines = self.lines
            loc = popd(kwargs, 'loc', 1)

and more like it. I think this works...