Re: Read .txt file like .py file

2008-07-28 Thread King
Well, I have a look to into compiler module and gave it a try using compiler.parseFile and compiler.walk but I haven't got what I need here. -- http://mail.python.org/mailman/listinfo/python-list

Re: Read .txt file like .py file

2008-07-27 Thread Stefan Behnel
King wrote: > I have a text file and contents are: > > Help=""" > Code is written by xteam. > """ > value = 0.0 > > > How do I read this file like python syntax. What I mean is first > readline operation should return complete declaration of 'Help' > variable. If I evaluate this string then it s