Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

call static method from another static method python

class Test() :
    @staticmethod
    def static_method_to_call()
        pass

    @staticmethod
    def another_static_method() :
        Test.static_method_to_call()

    @classmethod
    def another_class_method(cls) :
        cls.static_method_to_call()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #static #method #static #method #python
ADD COMMENT
Topic
Name
1+3 =