[PATCH 2 of 4 RFC V2] formatter: add base implementation of data method

Bryan O'Sullivan bos at serpentine.com
Thu Sep 20 13:33:41 CDT 2012


On Sat, Sep 15, 2012 at 10:44 PM, David Carr <davidmc24 at gmail.com> wrote:

> +        for k, v in data.iteritems():
> +            self._item[k] = v
>

Both much faster and more concise as:

self._item.update(data)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120920/3d65836a/attachment.html>


More information about the Mercurial-devel mailing list