I\'d like to write a python function that has a dynamically created docstring. In essence for a function func() I want func.__doc__ to be a descri
func()
func.__doc__
Instead of messing with the function, why not write your own help function?
help
my_global=42 def help(func): print('%s: my_global=%s'%(func.func_name,my_global)) def foo(): pass help(foo)