Decorator

Latest version: v5.1.1

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

Scan your dependencies

Page 7 of 11

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.

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.

Page 7 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.