Better Living Through Python With Decorators
http://www.phyast.pitt.edu/~micheles/python/documentation.html
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.
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.
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
8
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:RISCV/python-decorator && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
decorator-3.4.0.tar.gz | 0000030333 29.6 KB | |
python-decorator.changes | 0000001738 1.7 KB | |
python-decorator.spec | 0000002491 2.43 KB |
Revision 9 (latest revision is 26)
Stephan Kulow (coolo)
accepted
request 180879
from
Sascha Peilicke (saschpe)
(revision 9)
- update to 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) (forwarded request 180868 from dirkmueller)
Comments 0