• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

How does the @ actually works for 'decorations' in python?

I wrote down some code.. https://code.sololearn.com/co4lEqL1vH4T/?ref=app I don't fully understand why the function is called without 'been called'

pythonoopclassfunctiondecorator
14th Mar 2023, 4:04 AM
Blastov
Blastov - avatar
1 Answer
+ 7
https://www.sololearn.com/discuss/569800/?ref=ap https://www.sololearn.com/discuss/2337826/?ref=app https://www.sololearn.com/discuss/2256608/?ref=app https://www.sololearn.com/discuss/2286952/?ref=app https://www.sololearn.com/discuss/3104610/?ref=app https://www.sololearn.com/discuss/632473/?ref=app https://www.sololearn.com/discuss/59729/?ref=app https://www.sololearn.com/discuss/44114/?ref=app https://www.sololearn.com/discuss/1229441/?ref=app https://www.sololearn.com/discuss/2868799/?ref=app https://www.sololearn.com/discuss/552607/?ref=app https://www.sololearn.com/discuss/2951863/?ref=app https://www.sololearn.com/discuss/3106419/?ref=app https://www.sololearn.com/discuss/23390/?ref=app https://www.sololearn.com/discuss/639702/?ref=app https://www.sololearn.com/discuss/1756410/?ref=app https://www.sololearn.com/discuss/1595897/?ref=app https://www.sololearn.com/discuss/1140080/?ref=app https://www.sololearn.com/discuss/2450305/?ref=app https://www.so
14th Mar 2023, 4:47 AM
R🍁🇼🇳
R🍁🇼🇳 - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Functions in python
0 Votes
HTML
1 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
2 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
0 Votes
I need advice
0 Votes
Answer please
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
I need advice
0 Votes
Why this code fails even without data race
0 Votes