Message54797
| 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:52 | admin | link | issue1483384 messages |
| 2007年08月23日 16:11:52 | admin | create |
|