Paul Melis wrote:
> I've always been using the has_key() method to test if a
> dictionary contains a certain key. Recently I tried the same using
> 'in', e.g.
>
> d = { ... }
> if k in d:
> ...Wouldn't be "if k in d.keys()" be the exact replacement? Regards, Björn -- BOFH excuse #17: fat electrons in the lines -- http://mail.python.org/mailman/listinfo/python-list
