]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-28617 Fixed docs inaccuracies about the types that support membership tests ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Sep 2018 18:18:15 +0000 (11:18 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Sep 2018 18:18:15 +0000 (11:18 -0700)
<!-- issue-number: [bpo-28617](https://www.bugs.python.org/issue28617) -->
https://bugs.python.org/issue28617
<!-- /issue-number -->
(cherry picked from commit 08bcf647d8a92e4bd47531588b284c6820b7a7ef)

Co-authored-by: wim glenn <wim.glenn@gmail.com>
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 0172d34ade6c45e4cd6ab5debbb7eedbf27702aa..6de7e1a2df5acc2630df5143a1be59b8cbc9f7e7 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.