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