#!/usr/local/bin/python2 from functools import update_wrapper as uw def a(): 'aaa' def b(): 'bbb' f = uw(a, b)