[issue46270] Comparison operators in Python Tutorial 5.7

Raymond Hettinger report at bugs.python.org
Wed Jan 5 16:58:37 EST 2022


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Container is correct.  Containers are defined as being anything that supports the "in" and "not in" operators.  That includes sequences (str, list, tuple, bytes, bytearray), mappings (dict, ChainMap, defaultdict), and sets (frozenset and set).

It doesn't matter that the word container comes up later.  At this point in the tutorial we tend to have a number of forward or references.  Our tutorial is more a guided walkthrough with examples rather than a series of sequential definitions.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46270>
_______________________________________


More information about the Python-bugs-list mailing list