From ccd8a9dce61641060bd8ba20b711bdf6ef0af834 Mon Sep 17 00:00:00 2001 From: wim glenn Date: Thu, 6 Sep 2018 22:29:10 -0500 Subject: [PATCH 1/3] Fix inaccuracies about types that support membership tests. Closes https://bugs.python.org/issue28617 --- Doc/library/stdtypes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 87c64214c67db7..f7f59cd3a6bb9d 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: From 2e345693f5d953701d9251d7424f8086dda1b06a Mon Sep 17 00:00:00 2001 From: wim glenn Date: Thu, 6 Sep 2018 22:40:17 -0500 Subject: [PATCH 2/3] Add the required NEWS entry --- .../next/Documentation/2018-09-06-22-39-47.bpo-28617.MjnJLz.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2018-09-06-22-39-47.bpo-28617.MjnJLz.rst 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 00000000000000..f54ad36aba5524 --- /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 From e82cbd24131e05f05fc41db0f7877ec90999ae7b Mon Sep 17 00:00:00 2001 From: Mariatta Date: Tue, 11 Sep 2018 08:31:57 -0700 Subject: [PATCH 3/3] Update 2018-09-06-22-39-47.bpo-28617.MjnJLz.rst --- .../next/Documentation/2018-09-06-22-39-47.bpo-28617.MjnJLz.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index f54ad36aba5524..281afad71d2731 100644 --- 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 @@ -1,2 +1,2 @@ Fixed info in the stdtypes docs concerning the types that support membership -tests +tests.