Message346661
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 |
|
Date |
User |
Action |
Args |
2019-06-26 18:57:03 | Emilio López Arias | set | recipients:
+ Emilio López Arias |
2019-06-26 18:57:03 | Emilio López Arias | set | messageid: <1561575423.11.0.289574881474.issue37418@roundup.psfhosted.org> |
2019-06-26 18:57:03 | Emilio López Arias | link | issue37418 messages |
2019-06-26 18:57:02 | Emilio López Arias | create | |
|