[Python-ideas] PEP 8 update on line length

Anders Hovmöller boxed at killingar.net
Tue Feb 19 13:09:00 EST 2019


>> 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 


More information about the Python-ideas mailing list