From e7817aff0d8d0757f72d0c2362aa3c9283b1cd1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Ogam?= Date: Sat, 28 Sep 2019 22:10:10 +0200 Subject: [PATCH 1/2] Update functions.rst --- Doc/library/functions.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 28d9c7b99e6f52..2e44ff2744a414 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -473,7 +473,7 @@ are always available. They are listed here in alphabetical order. dictionary is omitted it defaults to the *globals* dictionary. If both dictionaries are omitted, the expression is executed with the *globals* and *locals* in the environment where :func:`eval` is called. Note, *eval()* - does not have access to the :term:`nested scope`\s (non-locals) in the + does not have access to the :term:`nested scopes ` (non-locals) in the enclosing environment. The return value is the result of @@ -1625,7 +1625,7 @@ are always available. They are listed here in alphabetical order. not found in statically compiled languages or languages that only support single inheritance. This makes it possible to implement "diamond diagrams" where multiple base classes implement the same method. Good design dictates - that this method have the same calling signature in every case (because the + that this method has the same calling signature in every case (because the order of calls is determined at runtime, because that order adapts to changes in the class hierarchy, and because that order can include sibling classes that are unknown prior to runtime). @@ -1638,7 +1638,7 @@ are always available. They are listed here in alphabetical order. # super(C, self).method(arg) In addition to method lookups, :func:`super` also works for attribute - lookups. One possible use case for this is calling :term:`descriptor`\s + lookups. One possible use case for this is calling :term:`descriptors ` in a parent or sibling class. Note that :func:`super` is implemented as part of the binding process for From 42255b2bad5bd530e3f195fe4a62d4857c7c22de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Ogam?= Date: Sun, 29 Sep 2019 11:30:24 +0200 Subject: [PATCH 2/2] Update functions.rst --- Doc/library/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 2e44ff2744a414..d5ab0d48f7411c 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1625,7 +1625,7 @@ are always available. They are listed here in alphabetical order. not found in statically compiled languages or languages that only support single inheritance. This makes it possible to implement "diamond diagrams" where multiple base classes implement the same method. Good design dictates - that this method has the same calling signature in every case (because the + that this method have the same calling signature in every case (because the order of calls is determined at runtime, because that order adapts to changes in the class hierarchy, and because that order can include sibling classes that are unknown prior to runtime).