osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

what is payload


Hello,

Have working sample with strange property - payload:

class ExampleClass(object):
    def __init__(self,value):
        print("Initialising instance...")
        self.payload = value

exampleInstance = ExampleClass(42)
print(exampleInstance.payload)


Is it some default field that all objects has? What it is used for?