human
Complete this python program:
def getattr(attr, default=None):
assistant
#Here is the Python program you requested.

    """Get a named attribute from an object.
    When a default argument is given, it is returned when the attribute
    doesn\t exist.
    """
    def getter(value):
        return _getattr(value, attr, default)
    return transform(getter)