# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT """ Tools that operate on functions. """ __doc__ = 'Tools that operate on functions.' __file__ = '/Users/Shared/src/ide/build-files/build-temp/runtimes-release/__os__/osx/runtime-python2.7/lib/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so' __name__ = '_functools' __package__ = None class partial(object): """ partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords. """ args = None func = None keywords = None def reduce(function, sequence, initial=None): """ reduce(function, sequence[, initial]) -> value Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). If initial is present, it is placed before the items of the sequence in the calculation, and serves as a default when the sequence is empty. """ return None