You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've just discovered astpath and it's really cool!
I can get the file and line at the start of the match, but how do I get the whole match?
Suppose I'm searching for logging.debug and my code looks as follows, thanks to black:
...
logging.debug(
"A very %s long %r line %s with %s a lot of %r format specifiers",
something.foo.bar,
[some.expression>that-results-in-an<objectforxiny],
yet.another.blah,
...
)
...
I wish that astpath could tell me the exact boundaries of the function call including the call arguments.
I can simulate some of this with before_ and after_context but that's kinda hacky...
The text was updated successfully, but these errors were encountered:
Hi, I've just discovered
astpath
and it's really cool!I can get the file and line at the start of the match, but how do I get the whole match?
Suppose I'm searching for
logging.debug
and my code looks as follows, thanks toblack
:I wish that astpath could tell me the exact boundaries of the function call including the call arguments.
I can simulate some of this with
before_
andafter_context
but that's kinda hacky...The text was updated successfully, but these errors were encountered: