[Python]What Is This Statement For ? @root | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

[Python]What Is This Statement For ? @root

In some frameworks I find this statement in the script like Ruby or Python : @root I tried to test it like if it will lead me to a root directory or something like that but it doesn't work I searched for it but the only two results that I got are: •cubic/Square root of a number •PyRoot is it a method , function, property or what ? Please Help :(

28th Dec 2017, 10:45 AM
warlord
warlord - avatar
3 Answers
+ 2
@ is the sign that tells that the function declared below is decorated. thus, the root function (decorator) is somewhere in the framework functions...
28th Dec 2017, 4:59 PM
Amaras A
Amaras A - avatar
+ 2
I was wrong Python programming language was named after Monty Python, wow, names for things sometimes have nothing technical about them, this name is actually based on a comical show.
19th Jan 2018, 10:55 PM
Doris V Walker
Doris V Walker - avatar
+ 1
If I were to take a stab at it possibly the Pythagorean theorem.
19th Jan 2018, 10:51 PM
Doris V Walker
Doris V Walker - avatar