help() function
Chris Spencer
clspence at one.net
Tue Nov 5 15:13:26 EST 2002
Wow, thanks! This is perfect for my needs. :)
Chris.
On 5 Nov 2002 01:03:58 GMT, bokr at oz.net (Bengt Richter) wrote:
>On 4 Nov 2002 18:05:19 -0600, Chris Spencer <clspence at one.net> wrote:
>
>> The documentation makes it clear that the help() function is only used
>>in interactive mode. However, I see it as a really neato-way of generating
>>standalone .txt files from docstrings in modules. However, as it currently
>>stands, it looks like help() can ONLY be used in interactive mode, which means I
>>can't capture the output to a file.
>> Is there any way to get the same docstring formatting that help() uses,
>>but be able to capture it to a variable or a file handle?
>> Inquiring minds want to know.
<snip pydoc stuff>
> python D:\Python22\Lib\pydoc.py > a_file.txt
>
>as extension-triggered program output is not always redirectable.
>
>Regards,
>Bengt Richter
More information about the Python-list
mailing list