def getattr(attr, default=None):
def getter(value):<EOL><INDENT>return _getattr(value, attr, default)<EOL><DEDENT>return transform(getter)<EOL>
Get a named attribute from an object.

    When a default argument is given, it is returned when the attribute
    doesn't exist.