I was seeing the methods and docs of the built in super()
method of python using the help()
function in the IDLE .
I came across this piece of code
This works for class methods too: | class C(B): | @classmethod | def cmeth(cls, arg): | super().cmeth(arg)
In the second line , you can see the @
sign before classmethod
.
What does the @
symbol does in python and what are its uses ?