Message314911
Strings are actually the odd-man out -- dicts, sets, lists, tuples, etc., all return False instead of raising TypeError.
The reason str raises an error is because `in`, for str, is a substring check, not a membership check. |
|
Date |
User |
Action |
Args |
2018-04-04 00:29:55 | ethan.furman | set | recipients:
+ ethan.furman, barry, eli.bendersky, Dutcho |
2018-04-04 00:29:55 | ethan.furman | set | messageid: <1522801795.67.0.467229070634.issue33217@psf.upfronthosting.co.za> |
2018-04-04 00:29:55 | ethan.furman | link | issue33217 messages |
2018-04-04 00:29:55 | ethan.furman | create | |
|