On Sep 20, 9:50 am, thebjorn <[EMAIL PROTECTED]>
wrote:

it's bad form to reply to myself, I know, but

>     def __iter__(self):
>         for k in super(mdict,self).__iter__():
>             yield eval(k)

should probably be

    def __iter__(self):
        return (eval(k) for k in super(mdict,self).__iter__())

I'm still getting used to the power of generator expressions :-)

-- bjorn

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to