Hi ,
I am trying to save the output of "help('tkinter')" in a text file.
But i get error. I want to know if there is a Way to get the output of help file
redirected to a file , or save in a variable.
By the way , the code i tried was this .It pretty basic try .
>>> file1=open("C:\\Documents and Settings\\achowdhury\\Desktop\\Help xlrd.txt",'w')
>>> file1.writelines(help('xlrd'))
I get the output as the full help of the module, followed by error ,
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
file1.writelines(help('xlrd'))
TypeError: writelines() requires an iterable argument