]> granicus.if.org Git - python/commitdiff
bpo-28617 Fixed docs inaccuracies about the types that support membership tests ...
authorwim glenn <wim.glenn@gmail.com>
Tue, 11 Sep 2018 17:44:52 +0000 (12:44 -0500)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Sep 2018 17:44:52 +0000 (10:44 -0700)
<!-- issue-number: [bpo-28617](https://www.bugs.python.org/issue28617) -->
https://bugs.python.org/issue28617
<!-- /issue-number -->

Doc/library/stdtypes.rst
Misc/NEWS.d/next/Documentation/2018-09-06-22-39-47.bpo-28617.MjnJLz.rst [new file with mode: 0644]

index 87c64214c67db7cc30a6a1ae45003d9623990e35..f7f59cd3a6bb9d5f45c6f8e30a09f8a8f9f02b1e 100644 (file)
@@ -197,8 +197,8 @@ exception.
    operator: not in
 
 Two more operations with the same syntactic priority, :keyword:`in` and
-:keyword:`not in`, are supported only by sequence types (below).
-
+:keyword:`not in`, are supported by types that are :term:`iterable` or
+implement the :meth:`__contains__` method.
 
 .. _typesnumeric:
 
diff --git a/Misc/NEWS.d/next/Documentation/2018-09-06-22-39-47.bpo-28617.MjnJLz.rst b/Misc/NEWS.d/next/Documentation/2018-09-06-22-39-47.bpo-28617.MjnJLz.rst
new file mode 100644 (file)
index 0000000..281afad
--- /dev/null
@@ -0,0 +1,2 @@
+Fixed info in the stdtypes docs concerning the types that support membership
+tests.