From fb07454d4c8ed12ea150ed3f836a0f433106cd60 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Sat, 1 Jan 2011 09:16:53 +0100 Subject: Added support for function annotations --- decorator/CHANGES.txt | 11 +- decorator/documentation.html | 339 +++--- decorator/documentation.pdf | 1867 ++++++++++++++++---------------- decorator/documentation.py | 39 +- decorator/documentation3.html | 430 ++++---- decorator/documentation3.pdf | 2362 +++++++++++++++++++++++------------------ decorator/documentation3.py | 86 +- decorator/index.html | 38 +- decorator/src/decorator.py | 43 +- decorator/test.py | 4 +- 10 files changed, 2801 insertions(+), 2418 deletions(-) diff --git a/decorator/CHANGES.txt b/decorator/CHANGES.txt index 30af4b4..a148668 100644 --- a/decorator/CHANGES.txt +++ b/decorator/CHANGES.txt @@ -1,6 +1,7 @@ HISTORY ---------- +3.3. Added support for function annotations (1/1/2011) 3.2.1. Now the .func_globals of the decorated function are the same of the undecorated function, as requested by Paul Ollis (28/12/2010) 3.2. Added __version__ (thanks to Gregg Lind), removed functionality which @@ -26,11 +27,11 @@ HISTORY http://packages.python.org/decorator (14/12/2008) 2.3.2. Small optimization in the code for decorator factories. First version with the code uploaded to PyPI (01/12/2008) -2.3.1. Set the zipsafe flag to False, since I want my users to have the source, not - a zipped egg (25/07/2008) -2.3.0. Added support for writing decorator factories with minimal effort (feature - requested by Matthew Wilson); implemented it by enhancing 'decorator' to - a Python 2.6 class decorator (10/07/2008) +2.3.1. Set the zipsafe flag to False, since I want my users to have the source, + not a zipped egg (25/07/2008) +2.3.0. Added support for writing decorator factories with minimal effort + (feature requested by Matthew Wilson); implemented it by enhancing + 'decorator' to a Python 2.6 class decorator (10/07/2008) 2.2.0. Added a note on 'inspect.getsource' not working for decorated functions; referenced PEP 326; highlighted the snippets in the documentation with pygments; slightly simplified the code (31/07/2007) diff --git a/decorator/documentation.html b/decorator/documentation.html index 55936b3..63f2b98 100644 --- a/decorator/documentation.html +++ b/decorator/documentation.html @@ -3,7 +3,7 @@ - + The decorator module