Ethan Furman <[email protected]> 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 <[email protected]> <https://bugs.python.org/issue33217> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
