def _is_attribute_explicitly_set(attribute_name, resource, target):
 return (('default' in resource[attribute_name]) and (attribute_name in target) and (target[attribute_name] is not attributes.ATTR_NOT_SPECIFIED) and (target[attribute_name] != resource[attribute_name]['default']))

def _is_attribute_explicitly_set ( attribute_name , resource , target ) : return ( ( 'default' in resource [ attribute_name ] ) and ( attribute_name in target ) and ( target [ attribute_name ] is not attributes . ATTR_NOT_SPECIFIED ) and ( target [ attribute_name ] != resource [ attribute_name ] [ 'default' ] ) )
verify that an attribute is present and has a non-default value .