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.