Append a new value to dict

Boris Borcic bborcic at
Thu Oct 16 12:13:37 CEST 2008

Kirk Strauser wrote:
> While we're on
> the subject, use keyword arguments to dict like:
>     foo.update(dict(quux='blah', baz='bearophile', jdd='dict'))
> was *much* slower, at 11.8s.

Presumably you would save half of that time by writing simply

        foo.update(quux='blah', baz='bearophile', jdd='dict')

Cheers, BB

More information about the Python-list mailing list