diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2015-03-16 16:26:37 +0100 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2015-03-16 16:26:37 +0100 |
| commit | b1755bb74675d373560cffc2bc3a4f5098d58dbc (patch) | |
| tree | df89cff882c4179ee2091024fc55ba925bc57203 /documentation.rst | |
| parent | 4dbca25bb139bead4221ab19eade93cfd7ce16ea (diff) | |
| download | python-decorator-git-b1755bb74675d373560cffc2bc3a4f5098d58dbc.tar.gz | |
Added a markdown README
Diffstat (limited to 'documentation.rst')
| -rw-r--r-- | documentation.rst | 8 |
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 --------------------------------------------------------------- |
