[PATCH] use 'x in dict' instead of 'dict.has_key(x)'
Dirkjan Ochtman
dirkjan at ochtman.nl
Wed Aug 26 06:20:41 CDT 2009
On Tue, Aug 25, 2009 at 15:10, Nicolas Dumazet<nicdumz at gmail.com> wrote:
> # HG changeset patch
> # User Nicolas Dumazet <nicdumz.commits at gmail.com>
> # Date 1251140434 -7200
> # Node ID 903c2d0d2d306a4fba2f52da9b4968c843786cd6
> # Parent 20ed9909dbd9251f76cacb463c480488eebf736b
> use 'x in dict' instead of 'dict.has_key(x)'
>
> "in" is faster, and has_key will be removed in py3k
Pushed to crew:
changeset: 9391:2705e6816d33
user: Nicolas Dumazet <nicdumz.commits at gmail.com>
date: Mon Aug 24 21:00:34 2009 +0200
summary: use 'x in dict' instead of 'dict.has_key(x)'
Thanks,
Dirkjan
More information about the Mercurial-devel
mailing list