diff options
| author | stepshal <nessento@openmailbox.org> | 2016-10-08 18:13:42 +0700 |
|---|---|---|
| committer | stepshal <nessento@openmailbox.org> | 2016-10-08 18:13:42 +0700 |
| commit | ab6cc95a17a92089cd0e2ad58dfd77aac3f29d5c (patch) | |
| tree | 0f04fe19078abfdd00ef91cc701e41e5ca28f3d9 /src | |
| parent | 79100259a2e8e133dcef761d13f4b5d3ba34429e (diff) | |
| download | python-decorator-git-ab6cc95a17a92089cd0e2ad58dfd77aac3f29d5c.tar.gz | |
Fix misspellings
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/documentation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/documentation.py b/src/tests/documentation.py index e752c3f..3c6a79d 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -726,7 +726,7 @@ $$XMLWriter Here, you want to dispatch on the *second* argument; the first is already taken by ``self``. The ``dispatch_on`` decorator factory allows you to specify the dispatch argument simplpy by passing its name as a string. (Note -that if you mispell the name you will get an error.) +that if you misspell the name you will get an error.) The decorated function decorated is turned into a generic function, and it is called if there are no more specialized implementations. @@ -1038,7 +1038,7 @@ You see here the inner call to the decorator ``trace``, which calls This latter reference is due to the fact that internally, the decorator module uses ``exec`` to generate the decorated function. Notice that -``exec`` is *not* responsibile for the performance penalty, since is the +``exec`` is *not* responsible for the performance penalty, since is the called *only once* (at function decoration time); it is *not* called each time the decorated function is called. @@ -1341,7 +1341,7 @@ def memoize(f): """ A simple memoize implementation. It works by adding a .cache dictionary to the decorated function. The cache will grow indefinitely, so it is - your responsability to clear it, if needed. + your responsibility to clear it, if needed. """ f.cache = {} return decorate(f, _memoize) |
