diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-10-08 18:29:29 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-10-08 18:29:29 (GMT) |
commit | cebdd3c8f15b7c07ae38dc0849721797d6891c12 (patch) | |
tree | bbef9cb24779964d52a1c503c161bec1dbb9b812 /Doc | |
parent | c09acfda778bba61267708458d12268aa5fecc62 (diff) | |
download | cpython-cebdd3c8f15b7c07ae38dc0849721797d6891c12.zip cpython-cebdd3c8f15b7c07ae38dc0849721797d6891c12.tar.gz cpython-cebdd3c8f15b7c07ae38dc0849721797d6891c12.tar.bz2 |
[Bug #1031897] Fix order of decorator application
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/whatsnew24.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index 2c1972c..6623291 100644 --- a/Doc/whatsnew/whatsnew24.tex +++ b/Doc/whatsnew/whatsnew24.tex @@ -302,7 +302,7 @@ It's equivalent to: \begin{verbatim} def f(): ... -f = C(B(A(f))) +f = A(B(C(f))) \end{verbatim} Decorators must come on the line before a function definition, and @@ -364,7 +364,7 @@ words, \code{@A @B @C(args)} becomes: \begin{verbatim} def f(): ... _deco = C(args) -f = _deco(B(A(f))) +f = A(B(_deco(f))) \end{verbatim} Getting this right can be slightly brain-bending, but it's not too @@ -1455,6 +1455,6 @@ by default. The author would like to thank the following people for offering suggestions, corrections and assistance with various drafts of this -article: Hye-Shik Chang, Michael Dyck, Raymond Hettinger. +article: Hye-Shik Chang, Michael Dyck, Raymond Hettinger, Hamish Lawson. \end{document} |