[Python-bugs-list] [ python-Bugs-672098 ] Three __contains__ implementations
SourceForge.net
noreply@sourceforge.net
Tue, 21 Jan 2003 18:16:34 -0800
Bugs item #672098, was opened at 2003-01-21 17:18
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=672098&group_id=5470
Category: Python Library
Group: Not a Bug
Status: Open
Resolution: None
Priority: 5
Submitted By: Jp Calderone (kuran)
Assigned to: Nobody/Anonymous (nobody)
Summary: Three __contains__ implementations
Initial Comment:
Several classes in the stdlib implement dict-like
interfaces, but do not provide __contains__
definitions. This is mentioned in PEP290 as a
"contra-indication" for updating code to use "k in d".
The attached patch adds __contains__ implementations
for these stdlib classes. As far as I can tell, this
brings all the dict-like classes in the stdlib "up to
date", so perhaps PEP290 should be updated as well.
----------------------------------------------------------------------
>Comment By: Jp Calderone (kuran)
Date: 2003-01-21 21:16
Message:
Logged In: YES
user_id=366566
Either mozilla or sf is screwing with me. *grumble*
There's no way I selected bisect.py for attachment. Proper
file now attached.
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon)
Date: 2003-01-21 19:44
Message:
Logged In: YES
user_id=357491
The attached file has no ``__contains__`` definitions for anything. Did you attach the correct file?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=672098&group_id=5470