classification
Title: settrace skips lines when chaining methods without arguments
Type: Stage:
Components: Interpreter Core Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6, Python 3.5, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: alexmojaki
Priority: normal Keywords:

Created on 2020-01-12 21:13 by alexmojaki, last changed 2020-01-12 21:13 by alexmojaki.

Files
File name Uploaded Description Edit
trace_skipping_lines_bug.py alexmojaki, 2020-01-12 21:13
Messages (1)
msg359878 - (view) Author: Alex Hall (alexmojaki) Date: 2020-01-12 21:13
When stepping through a multiline expression like this:

```
print(slug
      .replace("_", " ")
      .title()
      .upper()
      .replace("a", "b")
      .lower()
      .replace("The ", "the "))
```

only these lines are hit by the tracer function:

15 print(slug
16       .replace("_", " ")
19       .replace("a", "b")
21       .replace("The ", "the "))

I'm guessing the problem is that there are no expressions on the other lines, as the attributes and calls all start with slug.
History
Date User Action Args
2020-01-12 21:13:44alexmojakicreate