Decorator

Latest version: v5.2.1

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

Scan your dependencies

Page 7 of 11

3.3

Added support for function annotations.

3.2.1

Now the .func_globals of the decorated function are the same of
the undecorated function, as requested by Paul Ollis.

3.2

Added __version__ (thanks to Gregg Lind), removed functionality which
has been deprecated for years, removed the confusing decorator_factory
example and added official support for Python 3 (requested by Claus Klein).
Moved the documentation from PyPI to googlecode.

3.1.2

Added attributes args, varargs, keywords and arg0, ..., argN
to FunctionMaker objects generated from a function; fixed another
Pylons-breaking bug signaled by Lawrence Oluyede.

3.1.1

Fixed a bug which was breaking Pylons, signaled by
Gabriel de Perthuis, and added a test for it.

3.1

Added decorator.factory, an easy way to define families of decorators
(requested by various users, including David Laban). Refactored the
FunctionMaker class and added an easier to use .create classmethod.
Internally, functools.partial is used for Python >= 2.5.

Page 7 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.