[issue37418] Code execution without calling it
SilentGhost
report at bugs.python.org
Wed Jun 26 15:12:30 EDT 2019
SilentGhost <ghost.adh at runbox.com> added the comment:
The whole file is executed on import, you might as well have taken the "evil" code and placed in the global scope and not in the function. If you want to learn how to use decorators, again I suggest following a tutorial, SO or python-help. This is not a security issue.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37418>
_______________________________________
More information about the Python-bugs-list
mailing list