Python Forum
problem In using functools in a code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem In using functools in a code
#7
(Oct-09-2023, 01:26 PM)buran Wrote: This (the @) is used for decorator syntax

check
https://peps.python.org/pep-0318/
https://realpython.com/primer-on-python-decorators/

hi
as you can see the timer, itself is a decorator and you say @functools.wraps(func) is a decorator again, namely decorator inside decorator?
Reply


Messages In This Thread
problem In using functools in a code - by akbarza - Oct-06-2023, 10:27 AM
RE: problem In using functools in a code - by buran - Oct-07-2023, 11:44 AM
RE: problem In using functools in a code - by buran - Oct-09-2023, 01:26 PM
RE: problem In using functools in a code - by akbarza - Oct-11-2023, 10:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pip3 install functools failed kintarowonders 1 16,180 Mar-07-2019, 07:56 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020