Decorator Module Standard

I was wondering if he had a frown on using the decorator module that comes with python. Should I create decorators using original tools, or is it considered good practice to use a module?

+3
source share
2 answers

The pypi decorator module is a third-party module from Michele Simionato. It does not belong to the python standard library.

In most cases, you do not need this module to work with decorators.

However, it provides you with some useful tools that can simplify some of the use of decorators. Anyway, this is a good module to learn about decorators.

+3
source

, " ". , functools.

"" :

  • (2.x, 3.x) -
0

Source: https://habr.com/ru/post/1742529/


All Articles