def func_factory(method):
    try:
        func = getattr(math, method)
    except __HOLE__:
        return
    def inner(arg1, arg2=None):
        try:
            return func(arg1, arg2)
        except TypeError:
            return func(arg1)
    inner.__name__ = method
    doc = func.__doc__.splitlines()
    if len(doc) > 1 and not doc[1]:
        doc = doc[2:]
    inner.__doc__ = '\n'.join(doc)
    if method.startswith('is'):
        return comparison(inner)
    return filter(function(inner))
dataset/ETHPy150Open justquick/django-native-tags/native_tags/contrib/math_.py/func_factory