Decorator

Latest version: v5.2.1

Safety actively analyzes 714792 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 11

3.0.1

Improved the error message in case a bound/unbound method is passed
instead of a function and documented this case; that should make life
easier for users like Gustavo Nerea.

3.0

New major version introducing ``FunctionMaker`` and the two-argument
syntax for ``decorator``. Moreover, added support for getting the
source code. This version is Python 3.0 ready. Major overhaul of the
documentation, now hosted on http://packages.python.org/decorator.

2.3.2

Small optimization in the code for decorator factories. First version
with the code uploaded to PyPI.

2.3.1

Set the zipsafe flag to False, since I want my users to have the source,
not a zipped egg.

2.3.0

Added support for writing decorator factories with minimal effort
(feature requested by Matthew Wilson); implemented it by enhancing
'decorator' to a Python 2.6 class decorator.

2.2.0. (2007-07-31)

Added a note on 'inspect.getsource' not working for decorated
functions; referenced PEP 326; highlighted the snippets in the
documentation with pygments; slightly simplified the code.

2.1.0. (2007-07-03)

Replaced the utility 'update_wrapper' with 'new_wrapper' and
updated the documentation accordingly; fixed and improved the
doctester argument parsing, signaled by Sam Wyse.

2.0.1

Included the licence in the source code too; fixed a versioning
issue by adding the version number to the zip file and fixing
the link to it on the web page, thanks to Philip Jenvey.

Page 8 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.