Filewatcher File Search File Search
Content Search
» » » » »


simplify usage of python decorators by programmers

Python 2.4 decorators have significantly changed the way Python programs are structured. * decorators help reduce boilerplate code; * decorators help the separation of concerns; * decorators enhance readability and maintainability; * decorators are very explicit. Still, as of now, writing custom decorators correctly requires some experience and is not as easy as it could be. For instance, typical implementations of decorators involve nested functions and we all know that flat is better than nested. The aim of the decorator module it to simplify the usage of decorators for the average programmer and to popularize decorators usage giving examples of useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc.
Package version:2.2.0-2~bpo40+1


Decorator module


The decorator module requires Python 2.4.


Unzip the archive in a directory called "decorator" in your Python path. 
For instance, on Unices you could give something like that:

$ unzip -d decorator


Just go in the package directory and give

$ python documentation.txt


python-decorator (2.2.0-2~bpo40+1) etch-backports; urgency=low

  * Rebuild for etch-backports.
  * Use Etch's python-support v0.5.6
    + rename Egg dirname in debian/rules

 -- Piotr O┼╝arowski <>  Sun, 30 Mar 2008 20:09:25 +0200

python-decorator (2.2.0-2) unstable; urgency=low

  * debian/control:
    [Oleksandr Moskalenko]
    - Fixed a type in the description (Thanks to Reube



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)
2.1.0. Replaced the utility 'update_wrapper' with 'new_wrapper' and
     updated the documentation accordingly; fixed and improved the 
     doctester argument parsin


This package was debianized by Oleksandr Moskalenko <> on
Fri, 13 Apr 2007 13:10:43 

Browse inside python-decorator_2.2.0-2~bpo40+1_all.deb

         [DIR]DEBIAN/ (4)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download python-decorator_2.2.0-2~bpo40+1_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016