Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python staticmethod property

class staticproperty(staticmethod):
    def __get__(self, *args):
        return self.__func__()
      
# use instead of @property decorator in your class
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #python #staticmethod #property
ADD COMMENT
Topic
Name
1+2 =