From da726ba4760b7401a913f1f59854d6ead5188da8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Jul 2013 09:37:26 -0700 Subject: [PATCH] Fix minor grammatical/typographical issues. --- pep-0447.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pep-0447.txt b/pep-0447.txt index bb19b050a..7c84f584c 100644 --- a/pep-0447.txt +++ b/pep-0447.txt @@ -23,7 +23,7 @@ Rationale ========= Peeking in the class ``__dict__`` works for regular classes, but can -cause problems when a class dynamicly looks up attributes in a +cause problems when a class dynamically looks up attributes in a ``__getattribute__`` method. This new hook makes it possible to affect attribute lookup for both normal @@ -45,7 +45,7 @@ In Python code A meta type can define a method ``__locallookup__`` that is called during attribute resolution by both ``super.__getattribute__`` and ``object.__getattribute``:: - class MetaType (type): + class MetaType(type): def __locallookup__(cls, name): try: @@ -53,7 +53,7 @@ attribute resolution by both ``super.__getattribute__`` and ``object.__getattrib except KeyError: raise AttributeError(name) from None -The example method above is pseudo code for the implementation of this method on +The example method above is pseudocode for the implementation of this method on `type`_ (the actual implementation is in C, and doesn't suffer from the recursion problem in this example).