Indeed, that's awesome.

Ondrej

On Wed, Apr 30, 2014 at 11:05 AM, Brian Granger <elliso...@gmail.com> wrote:
> Yes, I saw this - very beautiful!
>
> On Wed, Apr 30, 2014 at 9:30 AM, Aaron Meurer <asmeu...@gmail.com> wrote:
>> Some people on this list might find this useful.
>> http://takluyver.github.io/posts/astsearch-code-searching-that-knows-about-code.html
>>
>> We often grep the codebase to do refactorings, or fix some API, or
>> whatever. This uses Python's ast to search, meaning it will filter out
>> false positive, and should also work with things that span multiple
>> lines (and you don't have to worry about whitespace).
>>
>> As an example, to find all instances of .args in code (as opposed to
>> strings and comments), you could do
>>
>> astsearch ?.args sympy/
>>
>> Aaron Meurer
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sympy" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sympy+unsubscr...@googlegroups.com.
>> To post to this group, send email to sympy@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sympy.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sympy/CAKgW%3D6JQpXRF0Pmd-BvXjXpvShLGWNs7BicW0%3DyfO_JdxDsz3Q%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Brian E. Granger
> Cal Poly State University, San Luis Obispo
> bgran...@calpoly.edu and elliso...@gmail.com
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/CAH4pYpSLgRAZ9rk-bLAbc1pcGYHBkf6wAL4QB1fAHmM844fgjA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CADDwiVAELspOOwoXU_yVNBnAzZAjevyY%3DRf7PLx6uqqwqAQsTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to