def vectorize(fn):
@functools.wraps(fn)<EOL>def vectorized_function(values, *vargs, **kwargs):<EOL><INDENT>return [fn(value, *vargs, **kwargs) for value in values]<EOL><DEDENT>return vectorized_function<EOL>
Allows a method to accept a list argument, but internally deal only
with a single item of that list.