From ebc8ff5064dc649116047856a44c43853d8cdcd6 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Thu, 18 Oct 2012 10:39:28 +0200 Subject: Worked on decorator 3.4 --- decorator/CHANGES.txt | 4 + decorator/Makefile | 8 +- decorator/documentation.html | 500 +++++++----- decorator/documentation.pdf | 1695 +++++++++++++++++++++------------------ decorator/documentation.py | 130 ++- decorator/documentation3.html | 179 +++-- decorator/documentation3.pdf | 1758 ++++++++++++++++++++++------------------- decorator/documentation3.py | 159 +++- decorator/index.html | 12 +- decorator/src/decorator.py | 99 ++- 10 files changed, 2574 insertions(+), 1970 deletions(-) diff --git a/decorator/CHANGES.txt b/decorator/CHANGES.txt index a319a94..bb093fa 100644 --- a/decorator/CHANGES.txt +++ b/decorator/CHANGES.txt @@ -1,6 +1,10 @@ HISTORY ---------- +3.4.0 Added the ability to use classes and generic callables as callers and + implemented a signature-preserving contexmanager decorator. Fixed a bug + with the signature f(**kw) in Python 3 and fixed a couple of doctests + broken by Python 3.3, both issues pointed out by Dominic Sacré (18/10/2012) 3.3.3 Fixed a bug with kwonlyargs for Python 3, submitted by Chris Ellison (23/04/2012) 3.3.2 Fixed a bug with __kwdefaults__ for Python 3, submitted by Chris diff --git a/decorator/Makefile b/decorator/Makefile index 7987755..a5c0b86 100644 --- a/decorator/Makefile +++ b/decorator/Makefile @@ -1,8 +1,8 @@ -RST=python $(HOME)/trunk/ROnline/RCommon/Python/ms/tools/rst.py +RST=python $(S)/ms/tools/rst.py rst: documentation.py documentation3.py - python $(HOME)/trunk/ROnline/RCommon/Python/ms/tools/minidoc.py -d documentation.py - python3 $(S)/minidoc3.py -d documentation3.py + python $(S)/ms/tools/minidoc.py -d documentation.py + python3.3 $(S)/minidoc3.py -d documentation3.py html: /tmp/documentation.rst /tmp/documentation3.rst $(RST) /tmp/documentation.rst @@ -15,4 +15,4 @@ pdf: /tmp/documentation.rst /tmp/documentation3.rst cp /tmp/documentation.html /tmp/documentation3.html . upload: documentation.pdf documentation3.pdf - python3 setup.py register sdist upload + python3.3 setup.py register sdist upload diff --git a/decorator/documentation.html b/decorator/documentation.html index 9239568..25a5709 100644 --- a/decorator/documentation.html +++ b/decorator/documentation.html @@ -3,7 +3,7 @@ - + The decorator module