File: control

package info (click to toggle)
python-decorator 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 280 kB
  • ctags: 58
  • sloc: python: 129; makefile: 46; sh: 13
file content (30 lines) | stat: -rw-r--r-- 1,514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Source: python-decorator
Section: python
Priority: optional
Maintainer: Oleksandr Moskalenko <malex@debian.org>
Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Build-Depends: debhelper (>= 5), python (>= 2.4), python-all-dev, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1)
Standards-Version: 3.7.2
XS-Python-Version: all
Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-decorator/trunk/
Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/python-decorator/trunk/?op=log

Package: python-decorator
Architecture: all
Depends: ${python:Depends}, python (>=2.4)
XB-Python-Version: ${python:Versions}
Enhances: python-pylons
Description: 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.