Re: About reading Python code

2008-03-17 Thread Roman Dodin
WaterWalk пишет: > Hello. I wonder what's the effective way of figuring out how a piece > of python code works. With C I often find it very useful to be able to > run the code in step mode and set breakpoints in a debugger so I can > watch how the it executes, how the data change and how the code

Re: find string in file

2008-03-14 Thread Roman Dodin
On 14 mar, 14:25, [EMAIL PROTECTED] wrote: >> Hi friends !! >> >> I'm neophite about python, my target is to create a programa that >> find a specific string in text file. >> How can do it? >> >> Thanks >> fel >> > > > One more way to do this f = codecs.open("log.txt", 'r', "utf_16_le")