summaryrefslogtreecommitdiff
path: root/documentation.rst
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2015-03-16 17:17:08 +0100
committerMichele Simionato <michele.simionato@gmail.com>2015-03-16 17:17:08 +0100
commit8dd2913bc310e02084c9a7eee81187c53d7bd1e8 (patch)
treeb9a32fdfe2ff81b9af8134b64103bed530019f67 /documentation.rst
parent0a949e970b90c502607daf091feda8b0e3e84a8c (diff)
parent196ea9fece7b1507769493f1109ae5080cb7466c (diff)
downloadpython-decorator-git-8dd2913bc310e02084c9a7eee81187c53d7bd1e8.tar.gz
Merged from 3.4.1release-3.4.2
Diffstat (limited to 'documentation.rst')
-rw-r--r--documentation.rst8
1 files changed, 3 insertions, 5 deletions
diff --git a/documentation.rst b/documentation.rst
index 3c10cae..1fda579 100644
--- a/documentation.rst
+++ b/documentation.rst
@@ -957,9 +957,7 @@ you will get a ``NameError``:
Finally, the implementation is such that the decorated function
attribute ``.func_globals`` is a *copy* of the original function
-attribute. On the other hand the function attribute dictionary
-of the decorated function is just a reference to the
-original function dictionary, i.e. ``vars(decorated_f) is vars(f)``:
+attribute, just as the attribute dictionary of the decorated function.
.. code-block:: python
@@ -972,8 +970,8 @@ original function dictionary, i.e. ``vars(decorated_f) is vars(f)``:
>>> traced_f.attr1
'something'
>>> traced_f.attr2 = "something different" # setting attr
- >>> f.attr2 # the original attribute did change
- 'something different'
+ >>> f.attr2 # the original attribute did not change
+ 'something else'
Compatibility notes
---------------------------------------------------------------