homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michaeltsai
Recipients
Date 2006年05月07日.15:41:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Right now, when I check membership in a set, the __in__ method just 
returns True/False if there is an object in the set that's == to the 
argument. I would like to have a member() method that returns the object 
in the set or raises KeyError if the argument is not in the set. This would 
be useful for interning and other cases where right now I'd use a 
degenerate dictionary where the keys and values are equal.
History
Date User Action Args
2007年08月23日 16:11:52adminlinkissue1483384 messages
2007年08月23日 16:11:52admincreate

AltStyle によって変換されたページ (->オリジナル) /