(self, obj, cls)
return obj.__dict__[self.attrname]
Returns the field's value on the given object instance, or the
        field's default value if no value for the field is available.

        Note the field's value will be decoded from API data if necessary,
        raising any exceptions that the field's `decode()` method may raise.
Returns the field's value on the given object instance, or the
        field's default value if no value for the field is available.
Returns the field s value on the given object instance or the field s default value if no value for the field is available .
def __get__(self, obj, cls):
        """Returns the field's value on the given object instance, or the
        field's default value if no value for the field is available.

        Note the field's value will be decoded from API data if necessary,
        raising any exceptions that the field's `decode()` method may raise.

        """
        if obj is None:
            # Yield the real field instance when gotten through the class.
            return self

        if self.attrname not in obj.__dict__:
            try:
                value = obj.api_data[self.api_name]
            except KeyError:
                if callable(self.default):
                    value = self.default(obj)
                else:
                    value = self.default
            else:
                value = self.decode(value)
            # Store the value so we need decode it only once.
            obj.__dict__[self.attrname] = value

        return obj.__dict__[self.attrname]
def __get__ ( self , obj , cls ) : if obj is None : # Yield the real field instance when gotten through the class. return self if self . attrname not in obj . __dict__ : try : value = obj . api_data [ self . api_name ] except KeyError : if callable ( self . default ) : value = self . default ( obj ) else : value = self . default else : value = self . decode ( value ) # Store the value so we need decode it only once. obj . __dict__ [ self . attrname ] = value return obj . __dict__ [ self . attrname ]