24.01.20 13:57, Chris Angelico пише:
Are there any non-container uses where this comes up? Can the rule be codified simply as that container membership, in all core/stdlib types, is defined by "x is y or x == y"?
Also a membership test for iterators (which is already explicitly documented).
>>> math.nan in (math.nan for i in [1]) True _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/VNFHDFCNNIV2DHWLWVKLJNXGF55NNC3G/ Code of Conduct: http://python.org/psf/codeofconduct/