>> Maybe you know some grep magic I don't? Is there a way to do multi line grep 
>> that knows that open paren means to ignore new lines until the matching 
>> close paren? I'd love to hear about it!
> 
> I probably don't know any more grep magic than you, I've just never had cause 
> to grep for anything that long.  I am a touch bemused that you do frequently 
> have cause, but each to his own, I suppose.

Not often. Once. But then I really really needed it :)

It was a case where we had an API change to a lib and many calls where long 
enough to be split on multiple lines AND the keyword argument we had to find 
was very generic AND it could exist in nested calls. Of course the last was 
really fine since we could ha e worked through the false positives manually. 

I also happen to have lots of experience with Parso so it was easy for me to 
write. Otherwise we would probably have a logged through the crappy way. 

It's pretty nice to have this is the tool belt though. 

/ Anders 
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to