Ethan Furman <et...@stoneleaf.us> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33217>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to