def isdatadescriptor(object):
 return (hasattr(object, '__set__') and hasattr(object, '__get__'))

def isdatadescriptor ( object ) : return ( hasattr ( object , '__set__' ) and hasattr ( object , '__get__' ) )
return true if the object is a data descriptor .