def Length(min=None, max=None, min_message="<STR_LIT>", max_message="<STR_LIT>"):
validator = Range(min, max, min_message, max_message)<EOL>@wraps(Length)<EOL>def built(value):<EOL><INDENT>if not hasattr(value, '<STR_LIT>'):<EOL><INDENT>raise Error("<STR_LIT>")<EOL><DEDENT>validator(len(value))<EOL>return value<EOL><DEDENT>return built<EOL>
Creates a validator that checks if the given value's length is in the
specified range, inclusive. (Returns the original value.)

See :func:`.Range`.