Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    decorator 3.4.0

    Download button

    No screenshots available
    Downloads: 531  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michele Simionato | More programs
    BSD License / FREE
    April 24th, 2012, 22:59 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    decorator description

    Better living through Python with decorators

    As of now, writing custom decorators correctly requires some experience and it 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. Moreover, typical implementations of decorators do not preserve the signature of decorated functions, thus confusing both documentation tools and developers.

    decorator's aim is 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.

    Installation:
     
    Unzip the archive in a directory called "decorator" in your Python path.   For instance, on Unices you could give something like that:
     
    $ unzip decorator.zip -d decorator
     
    Testing:
     
    Just go in the package directory and give
     
    $ python doctester.py documentation.txt
     
    This will generate the main.py file containing all the examples  discussed in the documentation, and will run the corresponding tests.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Small optimization in the code for decorator factories. First version with the code uploaded to PyPI (01/12/2008).

      


    TAGS:

    decorator module | Python library | Python | decorator | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM