howto redirect and extend help content ?
Stargaming
stargaming at gmail.com
Sun Jan 28 12:48:04 EST 2007
Stef Mientki schrieb:
> I'm making special versions of existing functions,
> and now I want the help-text of the newly created function to exists of
> 1. an extra line from my new function
> 2. all the help text from the old function
>
> # the old function
> def triang(M,sym=1):
> """The M-point triangular window. <== old help text
> """
> ....
>
> # the new function
> def chunked_triang(M):
> """ Chunked version of "triang" <== the extra line
> """
>
> >>> help(chunked_triang)
> # should give something like
>
> chunked_triang(M) <== the new definition
> Chunked version of "triang" <== the extra line
> The M-point triangular window. <== old help text
>
> Is that possible ?
>
>
> thanks,
> Stef Mientki
Don't you think your users can follow this easy reference theirselves?
More information about the Python-list
mailing list