Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python decorator class method

# Here is an example from https://wiki.python.org/moin/PythonDecorators#Examples

@classmethod
def foo (arg1, arg2):
   ....
   
# https://wiki.python.org/moin/PythonDecoratorLibrary has more examples 
 
PREVIOUS NEXT
Tagged: #python #decorator #class #method
ADD COMMENT
Topic
Name
9+6 =