[Pythonmac-SIG] Spotlight and Python

Bob Ippolito bob at redivi.com
Tue May 10 22:15:05 CEST 2005


On May 10, 2005, at 3:57 PM, Jacob Kaplan-Moss wrote:

> On May 10, 2005, at 2:00 PM, Jonathan Wight wrote:
>
>
>> I'm not sure how useful it is to index function & class names though.
>>
>>
>
> Oh, I disagree -- I've got over 100K lines of code, and I would
> *kill* to be able to find everywhere a particular symbol is used.
> And yes, I know grep -r will do it for me -- but the more ways to
> sift through data, the better.

The cool part about spotlight is that you could probably create the  
metadata from ASTs such that you could do advanced queries that say  
something to the effect of give me all python files where this class  
is defined, or maybe even where this class is subclassed.. stuff like  
that.

-bob



More information about the Pythonmac-SIG mailing list