[Patches] [ python-Patches-563203 ] Replace 'has_key' with 'in'
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 01 Jun 2002 06:13:06 -0700
Patches item #563203, was opened at 2002-06-01 01:22
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=563203&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: Replace 'has_key' with 'in'
Initial Comment:
The attached patch updates the library to use 'key in
dict' rather than the older, slower, less readable
has_key() form.
Passes regression tests.
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-06-01 09:13
Message:
Logged In: YES
user_id=6380
I have no time to review this. I suggest that you jst go for
it, but ask yourself one question for each change: are you
sure it's always a dict? Some other mappings don't support
'in' yet (e.g. the *dbm databases).
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=563203&group_id=5470