Python functools Functions

EditRocket provides the following information on functools functions in the Python source code builder.

partial(func[,*args][, **keywords]) - Return a new partial object which when called will behave like func called with the positional arguments args and keyword arguments keywords.

update_wrapper(wrapper, wrapped[, assigned][, updated]) - Update a wrapper function to look like the wrapped function.

wraps(wrapped[, assigned][, updated]) - This is a convenience function for invoking partial(update_wrapper, wrapped=wrapped, assigned=assigned, updated=updated) as a function decorator when defining a wrapper function.