Paketname | python-decorator |
Beschreibung | simplify usage of python decorators by programmers |
Archiv/Repository | Offizielles Ubuntu Archiv lucid (universe) |
Version | 3.1.2-1 |
Sektion | universe/python |
Priorität | optional |
Installierte Größe | 308 Byte |
Hängt ab von | python-support (>= 0.90.0) |
Empfohlene Pakete | |
Paketbetreuer | Ubuntu Developers |
Quelle | |
Paketgröße | 130892 Byte |
Prüfsumme MD5 | 3a950837acb9dec9ab6ceb7e6586b801 |
Prüfsumme SHA1 | 4582bcffdd0176d0df6a2adeb10b73aec9279a67 |
Prüfsumme SHA256 | 6b6486215ed2bd2a6e10e743d053c7a3e4127194066b8969e6f1fab79c2ee8af |
Link zum Herunterladen | python-decorator_3.1.2-1_all.deb |
Ausführliche Beschreibung | 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.
|