[issue37418] Code execution without calling it

SilentGhost report at bugs.python.org
Wed Jun 26 15:05:18 EDT 2019


SilentGhost <ghost.adh at runbox.com> added the comment:

It seems you're misunderstanding mechanics of decorators. Decorator is called when @decorator statement is executed and in that function *you* are calling the wrapped function. There are tutorials available on how to use this feature, I'd suggest you try them.

----------
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: security -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37418>
_______________________________________


More information about the Python-bugs-list mailing list