This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Emilio López Arias
Recipients Emilio López Arias, SilentGhost
Date 2019-06-26.19:07:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAO+Jh_OPEkWReF+U+PNK2Mhp8e4CzODKKR2fPHrFfcLEZ=8HAA@mail.gmail.com>
In-reply-to <1561575918.58.0.78841298837.issue37418@roundup.psfhosted.org>
Content
why the code is executed?
I could do a library or a package and include evil code instead of a
print...

El mié., 26 jun. 2019 a las 21:05, SilentGhost (<report@bugs.python.org>)
escribió:

>
> SilentGhost <ghost.adh@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@bugs.python.org>
> <https://bugs.python.org/issue37418>
> _______________________________________
>
History
Date User Action Args
2019-06-26 19:07:16Emilio López Ariassetrecipients: + Emilio López Arias, SilentGhost
2019-06-26 19:07:15Emilio López Ariaslinkissue37418 messages
2019-06-26 19:07:15Emilio López Ariascreate