[Patches] [ python-Patches-852140 ] keyword.py - use __contains__ and bool

SourceForge.net noreply at sourceforge.net
Mon Dec 1 10:43:35 EST 2003


Patches item #852140, was opened at 2003-12-01 16:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=852140&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerrit Holl (gerrit)
Assigned to: Nobody/Anonymous (nobody)
Summary: keyword.py - use __contains__ and bool

Initial Comment:
This patch provides two micro changes to keyword.py.
Instead of building the dict with value 1, it is built
with value True. And instead of having iskeyword be an
alias of kwdict.has_key, it makes iskeyword an alias
for kwdict.__contains__.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=852140&group_id=5470



More information about the Patches mailing list