[Python-checkins] bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)

Miss Islington (bot) webhook-mailer at python.org
Tue Sep 11 14:13:38 EDT 2018


https://github.com/python/cpython/commit/3e648f8371e342ccfa663ad77e82a538fcc8c9fb
commit: 3e648f8371e342ccfa663ad77e82a538fcc8c9fb
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-09-11T11:13:33-07:00
summary:

bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)


<!-- 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 at gmail.com>

files:
A Misc/NEWS.d/next/Documentation/2018-09-06-22-39-47.bpo-28617.MjnJLz.rst
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index e71ce75b8329..efa0a89490e1 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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
index 000000000000..281afad71d27
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2018-09-06-22-39-47.bpo-28617.MjnJLz.rst
@@ -0,0 +1,2 @@
+Fixed info in the stdtypes docs concerning the types that support membership
+tests.



More information about the Python-checkins mailing list