From 06a787e657bf26aab2c4e7b95a1336e087090ab5 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 --- CHANGES.txt | 4 + Makefile | 8 +- documentation.html | 500 +++++++++------ documentation.pdf | 1695 ++++++++++++++++++++++++++----------------------- documentation.py | 130 +++- documentation3.html | 179 ++++-- documentation3.pdf | 1758 +++++++++++++++++++++++++++------------------------ documentation3.py | 159 ++++- index.html | 12 +- src/decorator.py | 99 ++- 10 files changed, 2574 insertions(+), 1970 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index a319a94..bb093fa 100644 --- a/CHANGES.txt +++ b/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/Makefile b/Makefile index 7987755..a5c0b86 100644 --- a/Makefile +++ b/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/documentation.html b/documentation.html index 9239568..25a5709 100644 --- a/documentation.html +++ b/documentation.html @@ -3,7 +3,7 @@ - + The decorator module