def _string_generator(descriptor, max_length=0, limit=0):
    'Helper to create a string generator'
    vals = list(values.get_strings(max_length, limit))
    return gen.IterValueGenerator(descriptor.name, vals)
Helper to create a string generator