[Edu-sig] Re: [Tutor] Thoughts on little lambda
Jeff Shannon
jeff@ccvcorp.com
Mon, 11 Mar 2002 11:20:25 -0800
Kirby Urner wrote:
>
> Next question: Is there a way to associate a customized
> doc string with the built function?
A brief experiment in the interpreter seems to indicate that a function's
__doc__ is assignable, so it should be possible, after defining the function
but before returning it, to do
main.__doc__ = "This function returns %s" % descripton
or something similar.
Jeff Shannon
Technician/Programmer
Credit International