[Tutor] Searching across .Py files for a particular string/ character

Janesh Ramakrishnan jramakrishnan at neuropace.com
Fri Mar 31 02:57:05 CEST 2006

Hi Folks,

I was wondering what would be the best way to look up a string across different files in the Python interpreter (PythonWin 2.4). The find function only finds files within currently open files. If I have a folder of .py scripts and need to look up a specific keyword or string among all these files within the project folder, is there any method that you'd recommend?

For eg: Visual Studio 6.0 can look for a string across numerous files indexed in a project and returns a list of files containing that specific string. 

Any help would be greatly appreciated.


More information about the Tutor mailing list