From e255366be3839fc1d38ef8653d1678536cadfbdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Tue, 13 Nov 2018 20:52:01 -0300 Subject: [PATCH 1/2] Update abc.rst --- Doc/library/abc.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst index 2aba02f8cb49132..dcfab0f4ccd3779 100644 --- a/Doc/library/abc.rst +++ b/Doc/library/abc.rst @@ -18,10 +18,10 @@ see the PEP for why this was added to Python. (See also :pep:`3141` and the :mod:`numbers` module regarding a type hierarchy for numbers based on ABCs.) The :mod:`collections` module has some concrete classes that derive from -ABCs; these can, of course, be further derived. In addition the +ABCs; these can, of course, be further derived. In addition, the :mod:`collections.abc` submodule has some ABCs that can be used to test whether -a class or instance provides a particular interface, for example, is it -hashable or a mapping. +a class or instance provides a particular interface, e.g.: if it is +hashable or if it is a mapping. This module provides the metaclass :class:`ABCMeta` for defining ABCs and From 23667ea2585366050f976f7e8b2bec0a446ab49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Tue, 13 Nov 2018 21:27:44 -0300 Subject: [PATCH 2/2] Address comment from Mariatta --- Doc/library/abc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst index dcfab0f4ccd3779..45db42f21ca2113 100644 --- a/Doc/library/abc.rst +++ b/Doc/library/abc.rst @@ -20,7 +20,7 @@ see the PEP for why this was added to Python. (See also :pep:`3141` and the The :mod:`collections` module has some concrete classes that derive from ABCs; these can, of course, be further derived. In addition, the :mod:`collections.abc` submodule has some ABCs that can be used to test whether -a class or instance provides a particular interface, e.g.: if it is +a class or instance provides a particular interface, for example, if it is hashable or if it is a mapping.