The ____ function in the functools module is used to transform a method into a class method decorator.

  • classmethod
  • decorator
  • method2class
  • staticmethod
The classmethod function in the functools module is used to transform a method into a class method decorator. Class methods can be called on the class itself rather than on instances of the class.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *