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
Date 2019-06-26.18:57:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561575423.11.0.289574881474.issue37418@roundup.psfhosted.org>
In-reply-to
Content
Create a new python file: example.py
------------------------------------
def my_decorator(f):
	print("before")
	f()
	print("after")


@my_decorator
def my_function():
	print("hello world")
------------------------------------

If you execute the file example.py you should see some output you shouldn't:
(base) C:\Users\emilio\curso_python>python --version
Python 3.7.3
(base) C:\Users\emilio\curso_python>python ejemplo.py
before
hello world
after
History
Date User Action Args
2019-06-26 18:57:03Emilio López Ariassetrecipients: + Emilio López Arias
2019-06-26 18:57:03Emilio López Ariassetmessageid: <1561575423.11.0.289574881474.issue37418@roundup.psfhosted.org>
2019-06-26 18:57:03Emilio López Ariaslinkissue37418 messages
2019-06-26 18:57:02Emilio López Ariascreate