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
-
7
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:Rebuild/python-decorator && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
decorator-4.0.11.tar.gz | 0000070616 69 KB | |
python-decorator.changes | 0000004862 4.75 KB | |
python-decorator.spec | 0000002427 2.37 KB |
Revision 14 (latest revision is 26)
Dominique Leuenberger (dimstar_suse)
accepted
request 485855
from
Jan Matejek (matejcik)
(revision 14)
- fix source url - Update to 4.0.11 * Small improvements to the documentation and tested with Python 3.6 - Update to 4.0.10 * Improved the documentation thanks to Tony Goodchild (zearin) who also provided a much better CSS than the one I was using. - Update to 4.0.9 * Same as 4.0.7 and 4.0.8, re-uploaded due to issues on PyPI. - Update to 4.0.7 * Switched to a new changelog format (the one in http://keepachangelog.com/) since it was contributed by Alexander Artemenko. Re-added a newline to support old version of Python, as requested by [azjps](https://github.com/azjps). - Update to 4.0.6 * Removed a file x.py accidentally entered in the tarball. - Update to 4.0.5 * Documented a quirk signaled by David Goldstein when writing decorators for functions with keyword arguments. Avoided copying the globals, as signaled by Benjamin Peterson. - Update to 4.0.4 * Included a patch from Zev Benjamin: now decorated functions play well with cProfile. - Update to 4.0.3 * Added a warning about the memoize example, as requested by Robert Buchholz. - Update to 4.0.2 * docs/README.rst was not included in MANIFEST.in by accident, thus breaking the source installation. - Update to 4.0.1 * Added docs directory and upload_docs command. Fixed bug with
Comments 0