[issue39316] settrace skips lines when chaining methods without arguments

2022-01-14 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset d48848c83e0f3e41b65c8f741f3fb6dbce5b9c29 by Mark Shannon in 
branch 'master':
bpo-39316: Make sure that attribute accesses and stores, including method 
calls, conform to PEP 626. (GH-24859)
https://github.com/python/cpython/commit/d48848c83e0f3e41b65c8f741f3fb6dbce5b9c29


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Mark Shannon


Change by Mark Shannon :


--
keywords: +patch
pull_requests: +23619
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/24859

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Alex Hall

Alex Hall  added the comment:

I just came across https://www.python.org/dev/peps/pep-0626/, seems like this 
would need to be fixed to satisfy the PEP, but on the latest CPython it's not:

```
➜  ~ python3.10 ~/Downloads/trace_skipping_lines_bug.py
14 slug = "doing_the_thing"
15 print(slug
16   .replace("_", " ")
15 print(slug
19   .replace("a", "b")
15 print(slug
21   .replace("The ", "the "))
15 print(slug
doing the thing
➜  ~ python3.10 --version  
Python 3.10.0a6+
➜  ~ python3.10  
Python 3.10.0a6+ (heads/master:cd8dcbc, Mar 14 2021, 11:58:23) [GCC 7.5.0] on 
linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
```

--
type:  -> behavior
versions: +Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39316] settrace skips lines when chaining methods without arguments

2021-03-14 Thread Alex Hall


Change by Alex Hall :


--
nosy: +Mark.Shannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39316] settrace skips lines when chaining methods without arguments

2020-01-18 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions:  -Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39316] settrace skips lines when chaining methods without arguments

2020-01-12 Thread Alex Hall


New submission from Alex Hall :

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.

--
components: Interpreter Core
files: trace_skipping_lines_bug.py
messages: 359878
nosy: alexmojaki
priority: normal
severity: normal
status: open
title: settrace skips lines when chaining methods without arguments
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48837/trace_skipping_lines_bug.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com